summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli_def.l8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cli_def.l b/src/cli_def.l
index c90b3c3..71bd71f 100644
--- a/src/cli_def.l
+++ b/src/cli_def.l
@@ -85,11 +85,9 @@ append_str(char *text)
static int
return_action()
{
- if (action_ptr != action_buf) {
- *action_ptr = 0;
- yy_cli_parse_lval.strp = strdup(action_buf);
- action_ptr = action_buf;
- }
+ *action_ptr = 0;
+ yy_cli_parse_lval.strp = strdup(action_buf);
+ action_ptr = action_buf;
return STRING;
}