Only add the device portion of a hint when adding a hintdevice.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@361263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
10-digiumphones
Mark Michelson 14 years ago
parent 7e1648243e
commit 810dc193b7

@ -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);

Loading…
Cancel
Save