diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-07-24 23:01:19 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-07-24 23:01:38 +0200 |
commit | 2a145d7cc1d963e71d7df2210138b9f97de733e4 (patch) | |
tree | 3539fd57b2773f244d9d21562d4c481a00a5e7c1 /src/gui/gui-line.c | |
parent | 68ad24f2df0ace9788da801137dacf43b7fe806a (diff) | |
download | weechat-2a145d7cc1d963e71d7df2210138b9f97de733e4.zip |
core: remove dead assignments
Diffstat (limited to 'src/gui/gui-line.c')
-rw-r--r-- | src/gui/gui-line.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index 7a0e6fe47..72e2226b2 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -867,12 +867,13 @@ gui_line_has_highlight (struct t_gui_line *line) const char *ptr_nick; regmatch_t regex_match; - rc = 0; - /* remove color codes from line message */ msg_no_color = gui_color_decode (line->data->message, NULL); if (!msg_no_color) - return 0; + { + rc = 0; + goto end; + } ptr_msg_no_color = msg_no_color; /* @@ -1047,7 +1048,8 @@ gui_line_has_highlight (struct t_gui_line *line) } end: - free (msg_no_color); + if (msg_no_color) + free (msg_no_color); return rc; } |