diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-07 18:57:21 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-07 18:57:21 +0000 |
commit | e786f36ebf6a68c46f914bbbe2b5cc5ffa877150 (patch) | |
tree | 398f09e41e332712004dea48e960b61027f24f77 | |
parent | 3bc71165d9e8b612d99d8555b423bdf0f9cdda76 (diff) |
atoi(NULL) is bad
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113170 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_phoneprov.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/res/res_phoneprov.c b/res/res_phoneprov.c index ea5ee9ffc..38111ffae 100644 --- a/res/res_phoneprov.c +++ b/res/res_phoneprov.c @@ -166,12 +166,12 @@ static struct { { "mp3", "audio/mpeg" }, }; -char global_server[80] = ""; /*!< Server to substitute into templates */ -char global_serverport[6] = ""; /*!< Server port to substitute into templates */ -char global_default_profile[80] = ""; /*!< Default profile to use if one isn't specified */ +static char global_server[80] = ""; /*!< Server to substitute into templates */ +static char global_serverport[6] = ""; /*!< Server port to substitute into templates */ +static char global_default_profile[80] = ""; /*!< Default profile to use if one isn't specified */ /*! \brief List of global variables currently available: VOICEMAIL_EXTEN, EXTENSION_LENGTH */ -struct varshead global_variables; +static struct varshead global_variables; /*! \brief Return mime type based on extension */ static char *ftype2mtype(const char *ftype) @@ -728,7 +728,7 @@ 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) { + } else if (i == PP_LINENUMBER && tmp) { exten->index = atoi(tmp); } |