aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r--src/util/getopt_helpers.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c
index c55b22fb6..32cce65dd 100644
--- a/src/util/getopt_helpers.c
+++ b/src/util/getopt_helpers.c
@@ -748,6 +748,13 @@ set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
748 unsigned int *val = scls; 748 unsigned int *val = scls;
749 749
750 (void) ctx; 750 (void) ctx;
751 if('-' == *value)
752 {
753 FPRINTF (stderr,
754 _("Your input for the '%s' option has to be a non negative number \n"),
755 option);
756 return GNUNET_SYSERR;
757 }
751 if (1 != SSCANF (value, 758 if (1 != SSCANF (value,
752 "%u", 759 "%u",
753 val)) 760 val))