ovs-appctl: Fix shadow variable that could cause segfault
authorJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 00:36:21 +0000 (16:36 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 17 Nov 2009 02:11:39 +0000 (18:11 -0800)
commitfb344b867b96a6d6b9ec32e277cae6db68f2f236
tree276384704d8aa3c741f872ee42f64d84e1d1b8e9
parent4836f9f2bfa5dc0531bd1d828aae96ccd6b415cb
ovs-appctl: Fix shadow variable that could cause segfault

The variable "socket_name" contains the name of the unix domain socket
to be used for communicating with the OVS process.  If the target does
not begin with a "/", the socket name is determined based on a pidfile.
A shadow copy of "socket_name" was kept in the block that looks at the
pidfile, which would cause the function-level one to not be set.  This
removes that shadow copy.
utilities/ovs-appctl.c