summaryrefslogtreecommitdiff
path: root/libbb/getopt32.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/getopt32.c')
-rw-r--r--libbb/getopt32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index c0d885603..cd890323e 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -560,6 +560,7 @@ getopt32(char **argv, const char *applet_opts, ...)
560 llist_add_to_end((llist_t **)(on_off->optarg), optarg); 560 llist_add_to_end((llist_t **)(on_off->optarg), optarg);
561 } else if (on_off->param_type == PARAM_INT) { 561 } else if (on_off->param_type == PARAM_INT) {
562 if (optarg) 562 if (optarg)
563//TODO: xatoi_u indirectly pulls in printf machinery
563 *(unsigned*)(on_off->optarg) = xatoi_u(optarg); 564 *(unsigned*)(on_off->optarg) = xatoi_u(optarg);
564 } else if (on_off->optarg) { 565 } else if (on_off->optarg) {
565 if (optarg) 566 if (optarg)