mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@145429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user