From 7f2ae0c512e0085a43099d50a7d8846fb2e8d64f Mon Sep 17 00:00:00 2001 From: Ali Abdin Date: Fri, 19 May 2000 14:24:35 +0000 Subject: Fixed a typo - This fixed BUG #930 2000-05-19 Ali Abdin * 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!). --- src/info2html/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) -- cgit v1.2.1