summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2014-11-26 23:51:00 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-11-26 23:57:25 +0100
commitb7fc2eb15aa02da234e9fd2f4ab021bfff6c00c2 (patch)
tree23e36087c9139a4f4a2e0330cb224f9f21ae9b01
parent18cc17aed0d1685db98e71728956965e880b44b9 (diff)
downloadmonitoring-plugins-b7fc2eb15aa02da234e9fd2f4ab021bfff6c00c2.tar.gz
check_apt: fix memset
Fix memset introduced by commit 9ce7369 ("plugins/check_apt.c - Print uninitialized ereg"). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
-rw-r--r--plugins/check_apt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 07622c2f..8747f904 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -224,7 +224,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount){
224 char *cmdline=NULL, rerrbuf[64]; 224 char *cmdline=NULL, rerrbuf[64];
225 225
226 /* initialize ereg as it is possible it is printed while uninitialized */ 226 /* initialize ereg as it is possible it is printed while uninitialized */
227 memset(&ereg, "\0", sizeof(ereg.buffer)); 227 memset(&ereg, '\0', sizeof(ereg.buffer));
228 228
229 if(upgrade==NO_UPGRADE) return STATE_OK; 229 if(upgrade==NO_UPGRADE) return STATE_OK;
230 230