From: Jason Ish Date: Tue, 17 Jan 2017 21:48:33 +0000 (-0600) Subject: unix-socket: fix shadowed variable X-Git-Tag: suricata-3.2.1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2495%2Fhead;p=thirdparty%2Fsuricata.git unix-socket: fix shadowed variable ret does not need to be redefined here, the existing declaration of ret can be used. --- diff --git a/src/unix-manager.c b/src/unix-manager.c index b84b2c7a65..79dc5f7dc8 100644 --- a/src/unix-manager.c +++ b/src/unix-manager.c @@ -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) {