From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- libtreefs/dir-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtreefs/dir-lookup.c') diff --git a/libtreefs/dir-lookup.c b/libtreefs/dir-lookup.c index 80b55388..33fefe69 100644 --- a/libtreefs/dir-lookup.c +++ b/libtreefs/dir-lookup.c @@ -73,7 +73,7 @@ _treefs_s_dir_lookup (struct treefs_handle *h, { char *nextname; - assert (!lastcomp); + assert_backtrace (!lastcomp); /* Find the name of the next pathname component */ nextname = index (path, '/'); -- cgit v1.2.3