kike: avoid printf-ing a null string

This commit is contained in:
Přemysl Eric Janouch 2015-06-02 22:47:25 +02:00
parent 4dd2a80ba2
commit b132b979da
1 changed files with 2 additions and 1 deletions

3
kike.c
View File

@ -827,7 +827,8 @@ client_close_link (struct client *c, const char *reason)
// it, with some arbitrary timeout. The `closing_link' state makes sure // it, with some arbitrary timeout. The `closing_link' state makes sure
// that a/ we ignore any successive messages, and b/ that the connection // that a/ we ignore any successive messages, and b/ that the connection
// is killed after the write buffer is transferred and emptied. // is killed after the write buffer is transferred and emptied.
client_send (c, "ERROR :Closing Link: %s[%s] (%s)", c->nickname, client_send (c, "ERROR :Closing Link: %s[%s] (%s)",
c->nickname ? c->nickname : "",
c->hostname /* TODO host IP? */, reason); c->hostname /* TODO host IP? */, reason);
c->closing_link = true; c->closing_link = true;