[svn-commits] rmudgett: trunk r273198 - /trunk/include/asterisk/config.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 30 12:17:09 CDT 2010


Author: rmudgett
Date: Wed Jun 30 12:17:05 2010
New Revision: 273198

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273198
Log:
Remove unnecessary if test in CV_DSTR()

Modified:
    trunk/include/asterisk/config.h

Modified: trunk/include/asterisk/config.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/config.h?view=diff&rev=273198&r1=273197&r2=273198
==============================================================================
--- trunk/include/asterisk/config.h (original)
+++ trunk/include/asterisk/config.h Wed Jun 30 12:17:05 2010
@@ -696,7 +696,7 @@
 #define	CV_BOOL(__x, __dst)	CV_F(__x, (__dst) = ast_true(__val) )
 #define CV_UINT(__x, __dst)	CV_F(__x, (__dst) = strtoul(__val, NULL, 0) )
 #define CV_STR(__x, __dst)	CV_F(__x, ast_copy_string(__dst, __val, sizeof(__dst)))
-#define CV_DSTR(__x, __dst)	CV_F(__x, if (__dst) ast_free(__dst); __dst = ast_strdup(__val))
+#define CV_DSTR(__x, __dst)	CV_F(__x, ast_free(__dst); __dst = ast_strdup(__val))
 #define CV_STRFIELD(__x, __obj, __field) CV_F(__x, ast_string_field_set(__obj, __field, __val))
 
 /*! \brief Check if require type is an integer type */




More information about the svn-commits mailing list