diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-eval.c b/src/core/wee-eval.c index ccdcf8d44..abd1b03db 100644 --- a/src/core/wee-eval.c +++ b/src/core/wee-eval.c @@ -126,7 +126,8 @@ eval_hdata_get_value (struct t_hdata *hdata, void *pointer, const char *path) value = strdup (str_value); break; case WEECHAT_HDATA_STRING: - value = strdup (hdata_string (hdata, pointer, var_name)); + ptr_value = hdata_string (hdata, pointer, var_name); + value = (ptr_value) ? strdup (ptr_value) : NULL; break; case WEECHAT_HDATA_POINTER: pointer = hdata_pointer (hdata, pointer, var_name); |