diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-01 15:44:06 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-01 15:44:06 +0000 |
commit | 126de9ec363c304706bdcc2c90ae9207519220cb (patch) | |
tree | 93b8b635f0c96bebc93d3e489241518e35dd046f /apps/app_sms.c | |
parent | 26370991d0586d849d8692731778e3a6ae8ba9fe (diff) |
Initializing buffer prevents a segfault when arguments are incomplete.
(closes issue #13471)
Reported by: alecdavis
Patches:
20080916__bug13471.diff.txt uploaded by Corydon76 (license 14)
Tested by: alecdavis
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145428 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r-- | apps/app_sms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c index 3beda5030..fba111d66 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -1744,7 +1744,7 @@ static int sms_exec(struct ast_channel *chan, void *data) sms_t h = { 0 }; /* argument parsing support */ struct ast_flags flags; - char *parse, *sms_opts[OPTION_ARG_ARRAY_SIZE]; + char *parse, *sms_opts[OPTION_ARG_ARRAY_SIZE] = { 0, }; char *p; AST_DECLARE_APP_ARGS(sms_args, AST_APP_ARG(queue); |