Skip to content
Snippets Groups Projects
Commit 585a31be authored by Russell Bryant's avatar Russell Bryant
Browse files

Merged revisions 96644 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96644 | russell | 2008-01-04 20:09:19 -0600 (Fri, 04 Jan 2008) | 2 lines

Don't pass an empty string as the device name.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5d7ee7e9
No related branches found
No related tags found
No related merge requests found
...@@ -466,7 +466,7 @@ static int __ast_devstate_changed_literal(enum ast_device_state state, char *buf ...@@ -466,7 +466,7 @@ static int __ast_devstate_changed_literal(enum ast_device_state state, char *buf
*/ */
if (!norecurse && (tmp = strrchr(device, '-'))) { if (!norecurse && (tmp = strrchr(device, '-'))) {
*tmp = '\0'; *tmp = '\0';
__ast_devstate_changed_literal(state, tmp, 1); __ast_devstate_changed_literal(state, device, 1);
} }
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment