Browse Source

Static analysis: Initialize var

Serj Kalichev 10 years ago
parent
commit
f0ec6ffad6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clish/shell/shell_execute.c

+ 1 - 1
clish/shell/shell_execute.c

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