projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
app_chanisavail: Fix use of uninitialized variable.
[asterisk/asterisk.git]
/
apps
/
app_chanisavail.c
diff --git
a/apps/app_chanisavail.c
b/apps/app_chanisavail.c
index
fd88b91
..
8eef4ca
100644
(file)
--- a/
apps/app_chanisavail.c
+++ b/
apps/app_chanisavail.c
@@
-152,7
+152,9
@@
static int chanavail_exec(struct ast_channel *chan, const char *data)
}
*number = '\0';
number++;
-
+
+ status = AST_DEVICE_UNKNOWN;
+
if (string_compare) {
/* ast_parse_device_state checks for "SIP/1234" as a channel name.
ast_device_state will ask the SIP driver for the channel state. */