From: teodor Date: Sat, 14 Feb 2009 12:12:46 +0000 (+0000) Subject: Fix dumping empty suffix tree X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=5fe19b045294bb2ae111e1cc6bb338bdfc2aae33;p=tedtools.git Fix dumping empty suffix tree --- 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);