]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only add the device portion of a hint when adding a hintdevice.
authorMark Michelson <mmichelson@digium.com>
Wed, 4 Apr 2012 21:25:05 +0000 (21:25 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 4 Apr 2012 21:25:05 +0000 (21:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@361263 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 7f3ac77bdbba8241de2d08ca782337ce1a4a9ea0..5c2092a6f621cb2e0a4fccf7dbc4e0eb9cf536b9 100644 (file)
@@ -1069,7 +1069,7 @@ static int add_hintdevice(struct ast_hint *hint, const char *devicelist)
                return -1;
        }
        ast_str_set(&str, 0, "%s", devicelist);
-       parse = ast_str_buffer(str);
+       parse = parse_hint_device(str);
 
        while ((cur = strsep(&parse, "&"))) {
                devicelength = strlen(cur);