projects
/
tedtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix dumping empty suffix tree
[tedtools.git]
/
sfxstr.c
diff --git
a/sfxstr.c
b/sfxstr.c
index
6bf215d
..
d65bf7c
100644
(file)
--- 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);