]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/tests/stringbuf_IO_test.c
* some more work on unit testing
[citadel.git] / libcitadel / tests / stringbuf_IO_test.c
index 2606150dd137390c6a4e7fc24bd74db5a2f6d21b..fea682e01910e2a0660b5f6bc79407190c049ea8 100644 (file)
@@ -453,10 +453,12 @@ int main(int argc, char* argv[])
                        // else run the simple http test
                        break;
                case 't':
-                       timeout = atoi(optarg);
+                       if (optarg != NULL)
+                               timeout = atoi(optarg);
                        break;
                case 's':
-                       selres = atoi(optarg);
+                       if (optarg != NULL)
+                               selres = atoi(optarg);
                        break;
                }
        }