From 5fe19b045294bb2ae111e1cc6bb338bdfc2aae33 Mon Sep 17 00:00:00 2001 From: teodor Date: Sat, 14 Feb 2009 12:12:46 +0000 Subject: [PATCH] Fix dumping empty suffix tree --- sfxstr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfxstr.c b/sfxstr.c index 6bf215d..d65bf7c 100644 --- a/sfxstr.c +++ b/sfxstr.c @@ -1126,8 +1126,9 @@ SFSWriteDump(SFSTree *info, char *filename, void *extradata, u_int32_t extrasize wp.info = info; wp.offset = 0; - - writeNode(&wp, fd, info->node, extrasize); + + if ( info->node ) + writeNode(&wp, fd, info->node, extrasize); } flock(fd, LOCK_UN); -- 2.46.1