aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/options.c b/options.c
index a2e15bb7..f7e81b84 100644
--- a/options.c
+++ b/options.c
@@ -782,6 +782,12 @@ static char **handle_switch_s(const char *arg, char **next)
static char **handle_switch_U(char *arg, char **next)
{
const char *name = arg + 1;
+
+ if (*name == '\0') {
+ name = *++next;
+ if (!name)
+ die("argument to `-U' is missing");
+ }
add_pre_buffer("#undef %s\n", name);
return next;
}