diff --git a/libr/core/cmd.c b/libr/core/cmd.c index e619fac7a0..89133e1770 100644 --- a/libr/core/cmd.c +++ b/libr/core/cmd.c @@ -2351,7 +2351,7 @@ static int cmd_egg(void *data, const char *input) { static int cmd_flag(void *data, const char *input) { RCore *core = (RCore *)data; - char *str = strdup (input+1); + char *str = strdup (input + (*input)? 1:0); ut64 off = core->offset; switch (*input) {