projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a1b485
)
Make sure that ${LINE} is set even if linenumber is not set in users.conf
author
Terry Wilson
<twilson@digium.com>
Fri, 11 Apr 2008 22:23:34 +0000
(22:23 +0000)
committer
Terry Wilson
<twilson@digium.com>
Fri, 11 Apr 2008 22:23:34 +0000
(22:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114080
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
res/res_phoneprov.c
patch
|
blob
|
history
diff --git
a/res/res_phoneprov.c
b/res/res_phoneprov.c
index
5e658f5
..
5d9ec27
100644
(file)
--- a/
res/res_phoneprov.c
+++ b/
res/res_phoneprov.c
@@
-731,7
+731,10
@@
static struct extension *build_extension(struct ast_config *cfg, const char *nam
} else if (i == PP_TIMEZONE) {
/* perfectly ok if tmp is NULL, will set variables based on server's time zone */
set_timezone_variables(exten->headp, tmp);
- } else if (i == PP_LINENUMBER && tmp) {
+ } else if (i == PP_LINENUMBER) {
+ if (!tmp) {
+ tmp = "1";
+ }
exten->index = atoi(tmp);
}