Code

Manual: document that :<number> jumps to the line number
[tig.git] / tig.c
diff --git a/tig.c b/tig.c
index 60d73d52cdb0e8d58629c41b5bfa798268e1a883..58d7bd09137dd73ac495d2079eed24874934e97f 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3530,7 +3530,7 @@ open_commit_parent_menu(char buf[SIZEOF_STR], int *parents)
        int i;
 
        items = calloc(*parents + 1, sizeof(*items));
-       if (items)
+       if (!items)
                return FALSE;
 
        for (i = 0; i < *parents; i++) {