]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unix-socket: fix shadowed variable 2495/head
authorJason Ish <ish@unx.ca>
Tue, 17 Jan 2017 21:48:33 +0000 (15:48 -0600)
committerJason Ish <ish@unx.ca>
Tue, 17 Jan 2017 21:54:26 +0000 (15:54 -0600)
ret does not need to be redefined here, the existing
declaration of ret can be used.

src/unix-manager.c

index b84b2c7a65894e964363a6d1bf0c23f26033986a..79dc5f7dc834a3d35c1854c023e94f2754fda302 100644 (file)
@@ -127,7 +127,6 @@ int UnixNew(UnixCommand * this)
         struct stat stat_buf;
         /* coverity[toctou] */
         if (stat(SOCKET_PATH, &stat_buf) != 0) {
-            int ret;
             /* coverity[toctou] */
             ret = mkdir(SOCKET_PATH, S_IRWXU|S_IXGRP|S_IRGRP);
             if (ret != 0) {