diff options
Diffstat (limited to 'src/plugins/relay/relay-upgrade.c')
-rw-r--r-- | src/plugins/relay/relay-upgrade.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-upgrade.c b/src/plugins/relay/relay-upgrade.c index c0bf01a0c..e983e65a3 100644 --- a/src/plugins/relay/relay-upgrade.c +++ b/src/plugins/relay/relay-upgrade.c @@ -181,8 +181,7 @@ relay_upgrade_read_cb (void *data, new_client->status = weechat_infolist_integer (infolist, "status"); new_client->protocol = weechat_infolist_integer (infolist, "protocol"); str = weechat_infolist_string (infolist, "protocol_args"); - if (str) - new_client->protocol_args = strdup (str); + new_client->protocol_args = (str) ? strdup (str) : NULL; new_client->listen_start_time = weechat_infolist_time (infolist, "listen_start_time"); new_client->start_time = weechat_infolist_time (infolist, "start_time"); new_client->end_time = weechat_infolist_time (infolist, "end_time"); |