X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/701aebe9073cc0f46a1e4096644767790ca487d9..refs/heads/switch-to-debhelper:/splitkeys.c?ds=sidebyside diff --git a/splitkeys.c b/splitkeys.c index 2d3c58c..2a91d2f 100644 --- a/splitkeys.c +++ b/splitkeys.c @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) tmp->next = NULL; } } - if (tmp->next != NULL) { + if (tmp != NULL && tmp->next != NULL) { list_end = NULL; }