From ab4361b9fdd46fc770e509ce488b1d2f7a99fc78 Mon Sep 17 00:00:00 2001 From: Yuriy Syrota Date: Fri, 18 Oct 2024 14:41:19 +0300 Subject: [PATCH] Removed 'NULL' string option from testutil_duo_split_at --- lib/testutil_duo_split_at.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/testutil_duo_split_at.c b/lib/testutil_duo_split_at.c index 6df6991..ceb6153 100644 --- a/lib/testutil_duo_split_at.c +++ b/lib/testutil_duo_split_at.c @@ -28,7 +28,7 @@ int failure() int main (int argc, char *argv[]) { if (argc != 5) { - printf("Format: %s \n", argv[0]); + printf("Format: %s \n", argv[0]); return EXIT_FAILURE; } @@ -37,10 +37,6 @@ int main (int argc, char *argv[]) int position = atoi(argv[3]); char *expected = argv[4]; - if (strcmp(s, "NULL") == 0) { - s = NULL; - } - char *result = duo_split_at(s, *delimiter, position); if ((result == NULL && strcmp(expected, "NULL") == 0) ||