]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - splitkeys.c
Switch debian build system to dh
[onak.git] / splitkeys.c
index 2d3c58c8ea4a76ba13244ce3b08d59438a079fae..2a91d2faeac75fdd2eeb480126d67ead9a68786f 100644 (file)
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
                                        tmp->next = NULL;
                                }
                        }
                                        tmp->next = NULL;
                                }
                        }
-                       if (tmp->next != NULL) {
+                       if (tmp != NULL && tmp->next != NULL) {
                                list_end = NULL;
                        }
 
                                list_end = NULL;
                        }