diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-01 15:44:59 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-01 15:44:59 +0000 |
commit | e5f8c93da1c7d96375eca4bac38dd4d8fed29058 (patch) | |
tree | cf815ad5135b1be91f7b60d4b4866fccbd6cf7bd /apps/app_sms.c | |
parent | fdb0db31f716f504c74e50c8e15451f8ec435e74 (diff) |
Merged revisions 145428 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r145428 | tilghman | 2008-10-01 10:44:06 -0500 (Wed, 01 Oct 2008) | 7 lines
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/branches/1.6.0@145429 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 2af6a2590..3f5211f1d 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -1742,7 +1742,7 @@ static int sms_exec(struct ast_channel *chan, void *data) sms_t h = { 0 }; /* argument parsing support */ struct ast_flags sms_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); |