Skip to content
Snippets Groups Projects
Commit c36e37aa authored by Terry Wilson's avatar Terry Wilson
Browse files

atoi(NULL) is bad

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@113170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 63f574ce
Branches
Tags
No related merge requests found
...@@ -166,12 +166,12 @@ static struct { ...@@ -166,12 +166,12 @@ static struct {
{ "mp3", "audio/mpeg" }, { "mp3", "audio/mpeg" },
}; };
char global_server[80] = ""; /*!< Server to substitute into templates */ static char global_server[80] = ""; /*!< Server to substitute into templates */
char global_serverport[6] = ""; /*!< Server port to substitute into templates */ static 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_default_profile[80] = ""; /*!< Default profile to use if one isn't specified */
/*! \brief List of global variables currently available: VOICEMAIL_EXTEN, EXTENSION_LENGTH */ /*! \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 */ /*! \brief Return mime type based on extension */
static char *ftype2mtype(const char *ftype) static char *ftype2mtype(const char *ftype)
...@@ -728,7 +728,7 @@ static struct extension *build_extension(struct ast_config *cfg, const char *nam ...@@ -728,7 +728,7 @@ static struct extension *build_extension(struct ast_config *cfg, const char *nam
} else if (i == PP_TIMEZONE) { } else if (i == PP_TIMEZONE) {
/* perfectly ok if tmp is NULL, will set variables based on server's time zone */ /* perfectly ok if tmp is NULL, will set variables based on server's time zone */
set_timezone_variables(exten->headp, tmp); set_timezone_variables(exten->headp, tmp);
} else if (i == PP_LINENUMBER) { } else if (i == PP_LINENUMBER && tmp) {
exten->index = atoi(tmp); exten->index = atoi(tmp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment