diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-24 09:35:02 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-24 09:36:28 -0800 |
commit | 9fb6ba03d7183ae06644f8a747fdb99b970d65fc (patch) | |
tree | 04c7cd944d39f7359a186a67957bd8cc6b09f5bd | |
parent | c5060918164168c0a4f737b76e92df3c03356dc6 (diff) |
Delete unused name variable in register.c
Found by cppcheck 1.62:
[src/register.c:84]: (style) Variable 'name' is assigned a value
that is never used.
[src/register.c:182]: (style) Variable 'name' is assigned a value
that is never used.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/register.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/register.c b/src/register.c index bf39711..833714b 100644 --- a/src/register.c +++ b/src/register.c @@ -78,9 +78,7 @@ IceRegisterForProtocolSetup ( } else { - char *name; - - _IceProtocols[_IceLastMajorOpcode].protocol_name = name = + _IceProtocols[_IceLastMajorOpcode].protocol_name = strdup(protocolName); p = _IceProtocols[_IceLastMajorOpcode].orig_client = @@ -176,9 +174,7 @@ IceRegisterForProtocolReply ( } else { - char *name; - - _IceProtocols[_IceLastMajorOpcode].protocol_name = name = + _IceProtocols[_IceLastMajorOpcode].protocol_name = strdup(protocolName); _IceProtocols[_IceLastMajorOpcode].orig_client = NULL; |