dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@96645 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2008-01-05 02:12:10 +00:00
parent 99893cdf53
commit 07749ff028
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ static int __ast_devstate_changed_literal(enum ast_device_state state, char *buf
*/
if (!norecurse && (tmp = strrchr(device, '-'))) {
*tmp = '\0';
__ast_devstate_changed_literal(state, tmp, 1);
__ast_devstate_changed_literal(state, device, 1);
}
return 1;