[dovecot-cvs] dovecot/src/pop3-login client.c,1.59,1.60
tss at dovecot.org
tss at dovecot.org
Sat Nov 18 13:50:52 UTC 2006
Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv25178
Modified Files:
client.c
Log Message:
More const fixes
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- client.c 12 Nov 2006 12:41:37 -0000 1.59
+++ client.c 18 Nov 2006 13:50:50 -0000 1.60
@@ -214,12 +214,11 @@
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';
- if (client_command_execute(client, line, args))
+ if (client_command_execute(client, line,
+ args != NULL ? args : ""))
client->bad_counter = 0;
else if (++client->bad_counter > CLIENT_MAX_BAD_COMMANDS) {
client_send_line(client, "-ERR Too many bad commands.");
More information about the dovecot-cvs
mailing list