Browse Source

Static analysis: Initialize var

Serj Kalichev 10 years ago
parent
commit
2e243bebe4
1 changed files with 1 additions and 1 deletions
  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;