diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-30 17:17:05 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-30 17:17:05 +0000 |
commit | d23e32bf0aa8a19aea205773c0057fe53cfec0b3 (patch) | |
tree | 2c2fe5219e55f7a4f3336df618b9d6518154ac2f /include | |
parent | 59f5a90a7719fa4dbc1d2d5cd0b23d085da3a244 (diff) |
Remove unnecessary if test in CV_DSTR()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273198 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h index e9d8ca47f..47de72573 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 */ |