summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-13 11:05:44 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-13 11:05:44 +0000
commitfe2e5f4aecab99a1c361994e4b678d6709d65f6c (patch)
tree0278d52871abbe0682e1b807fd3af550807e4ff6 /lib/utils_base.c
parent1ea6fedfc02e7885230f6c9cd6ffd429210f0f37 (diff)
downloadmonitoring-plugins-fe2e5f4aecab99a1c361994e4b678d6709d65f6c.tar.gz
set_thresholds now let the user free the thresolds. (P.S.: When you set twice the thresholds for a path in check disk (like using -C followed by -p ) it overrides them. All new elements are created with np_add_parameter which initialises the thresholds to NULL.)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1930 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r--lib/utils_base.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c
index c0bc4dc5..a36eb680 100644
--- a/lib/utils_base.c
+++ b/lib/utils_base.c
@@ -120,10 +120,6 @@ _set_thresholds(thresholds **my_thresholds, char *warn_string, char *critical_st
120 } 120 }
121 } 121 }
122 122
123 if (*my_thresholds > 0) { /* Not sure why, but sometimes could be -1 */
124 /* printf("Freeing here: %d\n", *my_thresholds); */
125 free(*my_thresholds);
126 }
127 *my_thresholds = temp_thresholds; 123 *my_thresholds = temp_thresholds;
128 124
129 return 0; 125 return 0;