Mercurial > dovecot > original-hg > dovecot-1.2
diff src/pop3/client.c @ 4816:8ac2a2d27364 HEAD
Cleanup: Don't put string literals into non-const pointers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 18 Nov 2006 15:41:38 +0200 |
parents | aa9109a17db6 |
children | 967de900c73a |
line wrap: on
line diff
--- a/src/pop3/client.c Sat Nov 18 13:53:59 2006 +0200 +++ b/src/pop3/client.c Sat Nov 18 15:41:38 2006 +0200 @@ -362,13 +362,12 @@ while (!client->output->closed && (line = i_stream_next_line(client->input)) != NULL) { args = strchr(line, ' '); - if (args == NULL) - args = ""; - else + if (args != NULL) *args++ = '\0'; t_push(); - ret = client_command_execute(client, line, args); + ret = client_command_execute(client, line, + args != NULL ? args : ""); t_pop(); if (ret >= 0) { client->bad_counter = 0;