diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index e46b7adc9719e147536398e8e365d6d3e65a4ba7..5cbb4b081d63b52393a5f85716ba6961a18fa59e 100644 (file)
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
return -1;
*sort_tail = s = xcalloc(1, sizeof(*s));
return -1;
*sort_tail = s = xcalloc(1, sizeof(*s));
- sort_tail = &s->next;
if (*arg == '-') {
s->reverse = 1;
if (*arg == '-') {
s->reverse = 1;