summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/getopt.c')
-rw-r--r--newlib/libc/stdlib/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/getopt.c b/newlib/libc/stdlib/getopt.c
index 10002ed6b..06e378170 100644
--- a/newlib/libc/stdlib/getopt.c
+++ b/newlib/libc/stdlib/getopt.c
@@ -153,7 +153,7 @@ getopt_internal (int argc, char *const argv[], const char *shortopts,
char *possible_arg = NULL;
int longopt_match = -1;
int has_arg = -1;
- char *cp;
+ char *cp = NULL;
int arg_next = 0;
/* first, deal with silly parameters and easy stuff */