diff options
-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; |