Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: silence compiler warning
Browse files Browse the repository at this point in the history
main_proc is never read without having been initialized first but gcc 4.4.x
fails to infer that.
  • Loading branch information
bnoordhuis committed Mar 15, 2012
1 parent 7a2bd05 commit 6031156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runner.c
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6031156

Please sign in to comment.