Explorar o código

Static analysis: Initialize var

Serj Kalichev %!s(int64=10) %!d(string=hai) anos
pai
achega
2e243bebe4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      clish/shell/shell_execute.c

+ 1 - 1
clish/shell/shell_execute.c

@@ -213,7 +213,7 @@ void clish_shell_cleanup_script(void *script)
 static int clish_shell_lock(const char *lock_path)
 {
 	int i;
-	int res;
+	int res = -1;
 	int lock_fd = -1;
 	struct flock lock;