Revision b226293b44750f4e2ebd121e6f85528170f8e2c5 authored by René Scharfe on 09 November 2014, 13:49:58 UTC, committed by Junio C Hamano on 10 November 2014, 18:03:39 UTC
Initialize the struct child_process variable cp at declaration time. This is shorter, saves a function call and prevents using the variable before initialization by mistake. Suggested-by: Jeff King <peff@peff.net> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 66edfe9
test-read-cache.c
#include "cache.h"
int main (int argc, char **argv)
{
int i, cnt = 1;
if (argc == 2)
cnt = strtol(argv[1], NULL, 0);
for (i = 0; i < cnt; i++) {
read_cache();
discard_cache();
}
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...