fix segfault
[oweals/gnunet.git] / 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"),