浏览代码

Static analysis: Initialize var

Serj Kalichev 10 年之前
父节点
当前提交
2e243bebe4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;