diff options
author | Ali Abdin <aliabdin@aucegypt.edu> | 2000-05-19 14:24:35 +0000 |
---|---|---|
committer | Ali Abdin <rakholh@src.gnome.org> | 2000-05-19 14:24:35 +0000 |
commit | 7f2ae0c512e0085a43099d50a7d8846fb2e8d64f (patch) | |
tree | c8261cc8899aa399175076c17724bd02cfddf904 | |
parent | 158cd5510bff62c6986dec3990e2811635bfe6dd (diff) | |
download | yelp-7f2ae0c512e0085a43099d50a7d8846fb2e8d64f.tar.gz |
Fixed a typo - This fixed BUG #930mjs_pre_great_renaming
2000-05-19 Ali Abdin <aliabdin@aucegypt.edu>
* components/help/converters/gnome-db2html2/gdb3html.c:
(main): Fixed a typo - This fixed BUG #930
* components/help/converters/gnome-info2html2/main.c:
(main): Fixed it to it looks in /usr/info always and then any
other fir found in the INFOPATH variable - Fixes bug #934 but
there is a suggestion in there I think should be implemented
(since I wrote it - DOH!).
-rw-r--r-- | src/info2html/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/info2html/main.c b/src/info2html/main.c index bebec68c..213fc6c0 100644 --- a/src/info2html/main.c +++ b/src/info2html/main.c @@ -76,8 +76,11 @@ main(int argc, char **argv) /* First, find the directory that the info file is in. */ dirs[0] = "/usr/info"; + /* We now have at least one directory to look in. This is + * necessary because we may not have an 'INFOPATH' set */ + ndirs = 1; if(infopath) - for(ndirs = 0, ctmp = strtok((char *)args[0], ":"); ndirs < 64 && ctmp; ndirs++, ctmp = strtok(NULL, ":")) + for(ndirs = 1, ctmp = strtok((char *)args[0], ":"); ndirs < 64 && ctmp; ndirs++, ctmp = strtok(NULL, ":")) dirs[ndirs] = strdup(ctmp); for(i = 0; i < ndirs; i++) |