summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-11-01 09:53:38 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-11-01 09:53:38 +0100
commit6d69cde18674105e63b2c85e9a3cd996c8a3a3ea (patch)
tree96734ce2340f1572957133d6b34aa8f8b62e4d68 /src/gui/gui-chat.c
parentf53983bc790b8201431ee18fd5411311df6fabd6 (diff)
downloadweechat-6d69cde18674105e63b2c85e9a3cd996c8a3a3ea.zip
core, plugins: set error to NULL before calling strtol()
This is not strictly necessary, just in case the function strtol() doesn't update the pointer.
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r--src/gui/gui-chat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index b4471d59c..5c4e1a085 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -1079,6 +1079,7 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data,
hashtable_get (hashtable, "_chat_line_date") : NULL;
if (date)
{
+ error = NULL;
number = strtol (date, &error, 10);
if (error && !error[0])
{