diff options
Diffstat (limited to 'net-mgmt/monitoring-plugins')
-rw-r--r-- | net-mgmt/monitoring-plugins/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/net-mgmt/monitoring-plugins/Makefile b/net-mgmt/monitoring-plugins/Makefile index 1eab3bfc5669..8316c1bc0e66 100644 --- a/net-mgmt/monitoring-plugins/Makefile +++ b/net-mgmt/monitoring-plugins/Makefile @@ -3,7 +3,7 @@ PORTNAME= monitoring-plugins PORTVERSION= 2.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= net-mgmt MASTER_SITES= https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME} diff --git a/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c b/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c new file mode 100644 index 000000000000..f2eea57ad561 --- /dev/null +++ b/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c @@ -0,0 +1,20 @@ +--- lib/utils_base.c.orig 2016-11-29 08:45:08 UTC ++++ lib/utils_base.c +@@ -87,10 +87,13 @@ void _get_monitoring_plugin( monitoring_ + void + die (int result, const char *fmt, ...) + { +- va_list ap; +- va_start (ap, fmt); +- vprintf (fmt, ap); +- va_end (ap); ++ if(fmt!=NULL) { ++ va_list ap; ++ va_start (ap, fmt); ++ vprintf (fmt, ap); ++ va_end (ap); ++ } ++ + if(this_monitoring_plugin!=NULL) { + np_cleanup(); + } |