summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.c
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@gmx.de>2009-06-11 15:28:14 (GMT)
committerMatthias Eble <psychotrahe@gmx.de>2009-06-11 15:28:14 (GMT)
commit5a6268f72953d7d0aa0f22f278ac929b1f183686 (patch)
tree2653c52c368a8cee0110265f98ed662698901249 /lib/utils_base.c
parentc66d2c6b3b6d948ff36126f5d3a7629279f47878 (diff)
parent6e5d12b5d0345e61425399aff22c5a54fbebaf9e (diff)
downloadmonitoring-plugins-5a6268f72953d7d0aa0f22f278ac929b1f183686.tar.gz
Merge branch 'master' of ssh://PsychoTrahe@repo.or.cz/srv/git/nagiosplugins
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r--lib/utils_base.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index 77700f5..4303e15 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -101,7 +101,9 @@ _set_thresholds(thresholds **my_thresholds, char *warn_string, char *critical_st
101{ 101{
102 thresholds *temp_thresholds = NULL; 102 thresholds *temp_thresholds = NULL;
103 103
104 temp_thresholds = malloc(sizeof(temp_thresholds)); 104 if ((temp_thresholds = malloc(sizeof(thresholds))) == NULL)
105 die(STATE_UNKNOWN, _("Cannot allocate memory: %s\n"),
106 strerror(errno));
105 107
106 temp_thresholds->warning = NULL; 108 temp_thresholds->warning = NULL;
107 temp_thresholds->critical = NULL; 109 temp_thresholds->critical = NULL;