[asterisk-commits] rmudgett: trunk r397858 - /trunk/main/chanvars.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 28 11:09:16 CDT 2013


Author: rmudgett
Date: Wed Aug 28 11:09:12 2013
New Revision: 397858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397858
Log:
ast_free() is null tollerant.

Modified:
    trunk/main/chanvars.c

Modified: trunk/main/chanvars.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/chanvars.c?view=diff&rev=397858&r1=397857&r2=397858
==============================================================================
--- trunk/main/chanvars.c (original)
+++ trunk/main/chanvars.c Wed Aug 28 11:09:12 2013
@@ -62,8 +62,7 @@
 
 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)




More information about the asterisk-commits mailing list