mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Merged revisions 142748 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r142748 | tilghman | 2008-09-12 11:54:44 -0500 (Fri, 12 Sep 2008) | 3 lines When checking for an encoded character, make sure the string isn't blank, first. (Closes issue #13470) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@142750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1748,6 +1748,11 @@ int ast_get_encoded_char(const char *stream, char *result, size_t *consumed)
|
||||
int i;
|
||||
*consumed = 1;
|
||||
*result = 0;
|
||||
if (ast_strlen_zero(stream)) {
|
||||
*consumed = 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (*stream == '\\') {
|
||||
*consumed = 2;
|
||||
switch (*(stream + 1)) {
|
||||
|
||||
Reference in New Issue
Block a user