]> granicus.if.org Git - transmission/commitdiff
(trunk, libT) tr-getopt-test fixes similar to r14192
authorJordan Lee <jordan@transmissionbt.com>
Mon, 9 Sep 2013 00:40:20 +0000 (00:40 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 9 Sep 2013 00:40:20 +0000 (00:40 +0000)
libtransmission/tr-getopt-test.c

index 6344293a59068584e83acc38d7f0d7efa1b337a5..7922b3b8da8943c13aba6d098572e8452d970bfb 100644 (file)
@@ -50,8 +50,8 @@ test_no_options (void)
   int argc = 1;
   const char * argv[] = { "/some/path/tr-getopt-test" };
   int expected_n = 0;
-  int expected_c[] = { };
-  const char * expected_optarg[] = { };
+  int expected_c[] = { };
+  const char * expected_optarg[] = { NULL };
   return run_test (argc, argv, expected_n, expected_c, expected_optarg);
 }