bug-global
[Top][All Lists]
Advanced

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

Re: question about gtagsop.c


From: Shigio Yamaguchi
Subject: Re: question about gtagsop.c
Date: Tue, 19 Jul 2005 21:14:08 +0900

> Please explain the following portions of gtagsop.c.
> 
> libutil/gtagop.c
>   762                 if (gtop->root)
>   763                         snprintf(path, sizeof(path),
>   764                                 "%s/%s", gtop->root, &gtop->path[2]);
>   765                 else
>   766                         snprintf(path, sizeof(path), "%s", &gtop->path[
2]);
> 
> gtop->root is an array. Therefore, (gtop->root != 0) is always true.
> What is your intention here?

I believe it is a bug. How about using gtop->root[0] as a flag?
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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