Просмотр исходного кода

Fixed glibc error caused in utils_base.c due to uninitialized thresholds struct (spotted on ubundu 6.06 LTS).

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1711 f882894a-f735-0410-b71e-b25c423dba1c
Matthias Eble 19 лет назад
Родитель
Сommit
1ef19943e1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/check_cluster.c

+ 1 - 1
plugins/check_cluster.c

@@ -69,7 +69,7 @@ int main(int argc, char **argv){
 	char *ptr;
 	int data_val;
 	int return_code=STATE_OK;
-	thresholds *thresholds;
+	thresholds *thresholds = NULL;
 
 	if(process_arguments(argc,argv)==ERROR)
 		usage(_("Could not parse arguments"));