fix crash bug with -n
authorChristian Grothoff <christian@grothoff.org>
Sun, 31 Jan 2016 16:49:21 +0000 (16:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 31 Jan 2016 16:49:21 +0000 (16:49 +0000)
src/fs/gnunet-download.c

index a0ea9698aea37259ac8e2e5bf284f743cf099ce9..85afbe60692a9f4422789f1db705e9c95ddab26d 100644 (file)
@@ -308,7 +308,7 @@ main (int argc, char *const *argv)
      0, &GNUNET_GETOPT_set_one, &delete_incomplete},
     {'n', "no-network", NULL,
      gettext_noop ("only search the local peer (no P2P network search)"),
-     0, &GNUNET_GETOPT_set_uint, &local_only},
+     0, &GNUNET_GETOPT_set_one, &local_only},
     {'o', "output", "FILENAME",
      gettext_noop ("write the file to FILENAME"),
      1, &GNUNET_GETOPT_set_string, &filename},