bug-global
[Top][All Lists]
Advanced

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

question about gtagsop.c


From: Hideki IWAMOTO
Subject: question about gtagsop.c
Date: Tue, 19 Jul 2005 20:51:11 +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?




----
Hideki IWAMOTO  address@hidden




reply via email to

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