updates.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 8 Jun 2002 06:57:37 +0000 (06:57 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 8 Jun 2002 06:57:37 +0000 (06:57 +0000)
lib/silcclient/client_notify.c

index de788f443382df06725ac4255ea2aa7753246ac5..49897691f3845b898740abb70b6eb27cd2217fd1 100644 (file)
@@ -1147,7 +1147,7 @@ void silc_client_notify_by_server(SilcClient client,
 
        /* If same nick, the client was new to us and has become "present"
           to network.  Send NULL as nick to application. */
-       if (!strcmp(tmp, tmp_nick))
+       if (tmp_nick && !strcmp(tmp, tmp_nick))
          tmp = NULL;
 
        silc_free(tmp_nick);