-fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 14 Mar 2012 15:05:17 +0000 (15:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 14 Mar 2012 15:05:17 +0000 (15:05 +0000)
src/namestore/gnunet-namestore.c

index 5ce837caa755aa88c559ea24066cc332fffcd114..c58d58fd1f50e685fcf702d33231e5b9b25f8e95 100644 (file)
@@ -303,7 +303,8 @@ run (void *cls, char *const *args, const char *cfgfile,
     fprintf (stderr, _("Unsupported type `%s'\n"), typestring);
     GNUNET_SCHEDULER_shutdown ();
     return;
-  } else if (add | del)
+  }
+  if ((NULL == typestring) && (add | del))
   {
     fprintf (stderr,
             _("Missing option `%s' for operation `%s'\n"),