dovecot-2.2: fts: Minor code cleanup: Don't increment NULL pointer.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 12 23:20:41 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/0fc86de05ccf
changeset: 17465:0fc86de05ccf
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 13 00:46:34 2014 +0300
description:
fts: Minor code cleanup: Don't increment NULL pointer.
diffstat:
src/plugins/fts/doveadm-dump-fts-expunge-log.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 203b3a6f508f -r 0fc86de05ccf src/plugins/fts/doveadm-dump-fts-expunge-log.c
--- a/src/plugins/fts/doveadm-dump-fts-expunge-log.c Fri Jun 13 00:45:43 2014 +0300
+++ b/src/plugins/fts/doveadm-dump-fts-expunge-log.c Fri Jun 13 00:46:34 2014 +0300
@@ -91,8 +91,9 @@
{
const char *p;
- p = strrchr(path, '/');
- if (p++ == NULL)
+ if ((p = strrchr(path, '/')) != NULL)
+ p++;
+ else
p = path;
return strcmp(p, "dovecot-expunges.log") == 0;
}
More information about the dovecot-cvs
mailing list