1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Merge pull request #1116 from ailin-nemui/server-fuzz

fix warning in fe-fuzz/server-fuzz
This commit is contained in:
ailin-nemui 2019-08-30 21:16:20 +02:00 committed by GitHub
commit 0df21bcbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ void test_server() {
conn = server_create_conn(proto->id, "localhost", 0, "", "", "user");
server = proto->server_init_connect(conn);
server->session_reconnect = TRUE;
g_free(server->tag);
server->tag = g_strdup("testserver");
/* we skip some initialisations that would try to send data */
@ -176,6 +177,6 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
g_strfreev(head);
g_free(copy);
server_unref(server);
server_disconnect(server);
return 0;
}