summaryrefslogtreecommitdiffstats
path: root/lib/xref.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-15 22:52:56 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-22 12:50:27 +0100
commit833a54b757db3de1b32979b5561bdfef68c01964 (patch)
treea2960b8d30a7dbce7c51209df5f5840d54f521cf /lib/xref.c
parentlib: add [XXXXX-XXXXX] log prefix & config (diff)
downloadfrr-833a54b757db3de1b32979b5561bdfef68c01964.tar.xz
frr-833a54b757db3de1b32979b5561bdfef68c01964.zip
lib: fix xref hash calculation
... to make it do what it says it does. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/xref.c')
-rw-r--r--lib/xref.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/xref.c b/lib/xref.c
index 40efe5136..a41f91a22 100644
--- a/lib/xref.c
+++ b/lib/xref.c
@@ -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);