소스 검색

Static analysis: Initialize var

Serj Kalichev 10 년 전
부모
커밋
f0ec6ffad6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;