diff --git a/test/automake/testcommon.h b/test/automake/testcommon.h
index b890c6d..6fc935f 100644
--- a/test/automake/testcommon.h.in
+++ b/test/automake/testcommon.h.in
@@ -302,7 +302,7 @@ inline void fetch_traces() {
     snprintf(buffertrace, 256, "%s/%s_eztrace_log_rank_", trace_dir, user);
 
     if (nproc == 1) {
-        snprintf(trace[i], 256, "%s1", buffertrace);
+        snprintf(trace[0], 256, "%s1", buffertrace);
         if (debug >= DEBUG_VERBOSE)
             fprintf(stderr, "trace = %s\n", trace[0]);
     } else {
