[dovecot-cvs] dovecot/src/pop3 client.c,1.67,1.68
tss at dovecot.org
tss at dovecot.org
Sat Nov 18 13:41:45 UTC 2006
Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv24458/pop3
Modified Files:
client.c
Log Message:
Cleanup: Don't put string literals into non-const pointers.
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- client.c 10 Aug 2006 22:32:10 -0000 1.67
+++ client.c 18 Nov 2006 13:41:42 -0000 1.68
@@ -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;
More information about the dovecot-cvs
mailing list