X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=splitkeys.c;h=2a91d2faeac75fdd2eeb480126d67ead9a68786f;hb=refs%2Ftags%2Fonak-0.5.0;hp=2d3c58c8ea4a76ba13244ce3b08d59438a079fae;hpb=701aebe9073cc0f46a1e4096644767790ca487d9;p=onak.git 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; }