Skip to content

Commit

Permalink
Always initialise quote
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 28, 2018
1 parent d2af0c0 commit bd48d0b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1528,22 +1528,14 @@ static inline void map_list_mod_debug(REQUEST *request,
vp_map_t const *map, vp_map_t const *mod, fr_value_box_t const *vb)
{
char *rhs = NULL;
char const *quote;
char const *quote = "";

if (!rad_cond_assert(map->lhs != NULL)) return;
if (!rad_cond_assert(map->rhs != NULL)) return;

rad_assert(mod || (map->rhs->type == TMPL_TYPE_NULL));

if (vb) switch (vb->type) {
case FR_TYPE_QUOTED:
quote = "\"";
break;

default:
quote = "";
break;
}
if (vb && (vb->type == FR_TYPE_STRING)) quote = "\"";

/*
* If it's an exec, ignore the list
Expand Down

0 comments on commit bd48d0b

Please sign in to comment.