bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about gtagsop.c


From: Hideki IWAMOTO
Subject: Re: question about gtagsop.c
Date: Wed, 20 Jul 2005 19:13:52 +0900

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  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]