Explorar o código

variable initialization is back

Ali H. Fardan %!s(int64=9) %!d(string=hai) anos
pai
achega
561de544e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      slstatus.c

+ 1 - 1
slstatus.c

@@ -407,7 +407,7 @@ static char *
 run_command(const char* command)
 {
 	FILE *fp = popen(command, "r");
-	char buffer[64];
+	char buffer[64] = '\0';
 
 	if (fp == NULL) {
 		warn("Could not get command output for: %s", command);