On Wed, 20 Jul 2005 05:21:55 +0900, Shigio Yamaguchi wrote...
> > It seems that there are no other correction methods.
> > When is gtop->root[0] set to '\0'?
>
> It seems to have been initialized in gtags_open().
>
> gtags_open(...)
> {
> ...
> if ((gtop = (GTOP *)calloc(sizeof(GTOP), 1)) == NULL)
When using compact format, gtop->root is always overwritten
by the 2nd argument of gtags_open.
322 if (gtop->format & GTAGS_COMPACT) {
323 assert(root != NULL);
324 strlimcpy(gtop->root, root, sizeof(gtop->root));
The thing which I want to know is when an empty string("")
is specified by the 2nd argument of gtags_open.
If it never happen, this check will be meaningless.
----
Hideki IWAMOTO [EMAIL PROTECTED]
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global