aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.c b/app.c
index cfca2bd75..cce0cbeec 100755
--- a/app.c
+++ b/app.c
@@ -1090,7 +1090,8 @@ int ast_separate_app_args(char *buf, char delim, char **array, int arraylen)
break;
}
- array[x++] = scan;
+ if (scan)
+ array[x++] = scan;
return x;
}