@@ -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;