fetch: don't redundantly NULL something calloc() gave us
[gitweb.git] / builtin / fetch.c
index 7bbcd26faf1fe650ccc7dbbd526db5114aac0c8f..b34665db9e407ec3cdc8ecd9badda068927dcd20 100644 (file)
@@ -1302,7 +1302,6 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
                        } else
                                refs[j++] = argv[i];
                }
-               refs[j] = NULL;
                ref_nr = j;
        }