]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix xref hash calculation 8261/head
authorDavid Lamparter <equinox@diac24.net>
Mon, 15 Mar 2021 21:52:56 +0000 (22:52 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 22 Mar 2021 11:50:27 +0000 (12:50 +0100)
... to make it do what it says it does.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/xref.c

index 40efe51363143f2bc3f93a2b599bb5e1f872744a..a41f91a2289f322cd5d3656acb63c75054fce1ba 100644 (file)
@@ -93,8 +93,6 @@ static void xref_add_one(const struct xref *xref)
                q = memrchr(filename, '/', p - filename);
                if (q)
                        filename = q + 1;
-               else
-                       filename = p + 1;
        }
 
        SHA256_Init(&sha);