diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2011-11-11 23:49:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-11 23:49:53 -0500 |
commit | af12a7ac002cd1900e586461baac617b68a624f8 (patch) | |
tree | 51cced87607b33e6e4e5f5169017de63f371b228 /src/test | |
parent | a2ecf131f335132518a94a9a2cd831f8bd66bf56 (diff) | |
download | tor-af12a7ac002cd1900e586461baac617b68a624f8.tar.gz tor-af12a7ac002cd1900e586461baac617b68a624f8.zip |
Fix test_util.c compilation on MSVC
"Those '{}' constructs are not well liked by MSVC (cl v.16.xx)."
Received on tor-dev; fixes bug on 0.2.3.3-alpha.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 2146299f98..64bf52e7b1 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -1597,7 +1597,7 @@ test_util_join_win_cmdline(void *ptr) {"a\\\\\\b", "de fg", "H", NULL}, // Backslashes {"a\\\"b", "\\c", "D\\", NULL}, // Backslashes before quote {"a\\\\b c", "d", "E", NULL}, // Backslashes not before quote - {} // Terminator + { NULL } // Terminator }; const char *cmdlines[] = { @@ -1649,7 +1649,7 @@ test_util_split_lines(void *ptr) {"\n\rfoo\n\rbar\r\n", 12, {"foo", "bar", NULL}}, {"fo o\r\nb\tar", 10, {"fo o", "b.ar", NULL}}, {"\x0f""f\0o\0\n\x01""b\0r\0\r", 12, {".f.o.", ".b.r.", NULL}}, - {NULL, 0, {}} + {NULL, 0, { NULL }} }; int i, j; |