From: Ralph Boehme Date: Wed, 30 Apr 2014 12:47:20 +0000 (+0200) Subject: dbd: two fixes for new user option X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4803cb9c31dfd57ecd2326cecb93a5091f5b405e;p=netatalk.git dbd: two fixes for new user option * initialize user variable with NULL * add -u to option summary line Signed-off-by: Ralph Boehme --- diff --git a/etc/cnid_dbd/cmd_dbd.c b/etc/cnid_dbd/cmd_dbd.c index 17df52a9..9e8e008e 100644 --- a/etc/cnid_dbd/cmd_dbd.c +++ b/etc/cnid_dbd/cmd_dbd.c @@ -93,7 +93,7 @@ static void set_signal(void) static void usage (void) { - printf("Usage: dbd [-cfFstvV] \n\n" + printf("Usage: dbd [-cfFstuvV] \n\n" "dbd scans all file and directories of AFP volumes, updating the\n" "CNID database of the volume. dbd must be run with appropiate\n" "permissions i.e. as root.\n\n" @@ -138,7 +138,7 @@ int main(int argc, char **argv) AFPObj obj = { 0 }; struct vol *vol = NULL; const char *volpath = NULL; - char *username; + char *username = NULL; int c; while ((c = getopt(argc, argv, ":cfF:rstu:vV")) != -1) { switch(c) {