test: silence compiler warning

main_proc is never read without having been initialized first but gcc 4.4.x
fails to infer that.
This commit is contained in:
Ben Noordhuis 2012-03-15 16:06:29 +01:00
parent 7a2bd05493
commit 6031156602

View File

@ -86,6 +86,7 @@ int run_test(const char* test, int timeout, int benchmark_output) {
int i;
status = 255;
main_proc = NULL;
process_count = 0;
/* If it's a helper the user asks for, start it directly. */
@ -123,7 +124,7 @@ int run_test(const char* test, int timeout, int benchmark_output) {
uv_sleep(250);
/* Now start the test itself. */
for (main_proc = NULL, task = TASKS; task->main; task++) {
for (task = TASKS; task->main; task++) {
if (strcmp(test, task->task_name) != 0) {
continue;
}