dovecot-2.0: doveadm help: Fixed crash.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jul 2 01:30:22 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/4dd679310f12
changeset: 11703:4dd679310f12
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 01 23:30:18 2010 +0100
description:
doveadm help: Fixed crash.
diffstat:
src/doveadm/doveadm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 2162b9082283 -r 4dd679310f12 src/doveadm/doveadm.c
--- a/src/doveadm/doveadm.c Thu Jul 01 22:57:37 2010 +0100
+++ b/src/doveadm/doveadm.c Thu Jul 01 23:30:18 2010 +0100
@@ -317,8 +317,9 @@
}
cmd_name = argv[optind];
- if (cmd_name != NULL && strcmp(cmd_name, "help") == 0) {
- /* help doesn't need any configuration */
+ if (cmd_name != NULL && strcmp(cmd_name, "help") == 0 &&
+ argv[optind+1] != NULL) {
+ /* "help cmd" doesn't need any configuration */
quick_init = TRUE;
} else {
doveadm_read_settings();
More information about the dovecot-cvs
mailing list