From c719a0ecb3ce85d29a028ccb3f447e10160cd5c0 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sat, 25 Nov 2017 01:09:11 +1100 Subject: [PATCH] Test pointer against NULL rather than casting to int --- dll/autocycle/autocycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/autocycle/autocycle.c b/dll/autocycle/autocycle.c index 8c7fafb..2c905b2 100644 --- a/dll/autocycle/autocycle.c +++ b/dll/autocycle/autocycle.c @@ -21,7 +21,7 @@ int auto_cycle(IrcCommandDll *interp, char *command, char *args, char *subargs) { char * channel = current_window->current_channel; - int netsplit = (int)next_arg(args, &args); + int netsplit = (next_arg(args, &args) != NULL); int this_server = current_window->server; ChannelList * chan = lookup_channel(channel, this_server, 0); NickList * tmp = NULL;