From: Richard Mudgett Date: Wed, 30 Jun 2010 17:17:05 +0000 (+0000) Subject: Remove unnecessary if test in CV_DSTR() X-Git-Tag: 11.0.0-beta1~2757 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25156a326d5b491458b1559a041cb1ea4e2c84ce;p=thirdparty%2Fasterisk.git Remove unnecessary if test in CV_DSTR() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273198 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/config.h b/include/asterisk/config.h index e9d8ca47f2..47de725739 100644 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -696,7 +696,7 @@ int ast_parse_arg(const char *arg, enum ast_parse_flags flags, #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 */