Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test: silence compiler warning

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 60311566021c60e356c37720332bdbdf962618fe
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/runner.c
@@ -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;
}

0 comments on commit 6031156

Please sign in to comment.
You can’t perform that action at this time.