mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
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>
This commit is contained in:
parent
18cc17aed0
commit
b7fc2eb15a
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ int run_upgrade(int *pkgcount, int *secpkgcount){
|
|||
char *cmdline=NULL, rerrbuf[64];
|
||||
|
||||
/* initialize ereg as it is possible it is printed while uninitialized */
|
||||
memset(&ereg, "\0", sizeof(ereg.buffer));
|
||||
memset(&ereg, '\0', sizeof(ereg.buffer));
|
||||
|
||||
if(upgrade==NO_UPGRADE) return STATE_OK;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue