Skip to content
Snippets Groups Projects
Commit c7b7d98a authored by Richard Mudgett's avatar Richard Mudgett
Browse files

ast_free() is null tollerant.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b6a080d6
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,7 @@ struct ast_var_t *ast_var_assign(const char *name, const char *value)
void ast_var_delete(struct ast_var_t *var)
{
if (var)
ast_free(var);
ast_free(var);
}
const char *ast_var_name(const struct ast_var_t *var)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment