Overview
SHA1 Hash: | da4f0c2638bf64e7a726a09cf03dda11012ca5bf |
---|---|
Date: | 2008-02-01 05:29:52 |
User: | aku |
Comment: | Made remove_from_argv public for use by the upcoming test-import-manifest command. Fixed description of verify_all_options. Initialized variable to silence gcc warning. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/main.c from [cfe3d68152] to [fcf22176a5].
@@ -260,11 +260,11 @@ } /* ** Remove n elements from g.argv beginning with the i-th element. */ -static void remove_from_argv(int i, int n){ +void remove_from_argv(int i, int n){ int j; for(j=i+n; j<g.argc; i++, j++){ g.argv[i] = g.argv[j]; } g.argc = i; @@ -302,11 +302,11 @@ } return zReturn; } /* -** Verify that there are no processed command-line options. If +** Verify that there are no unprocessed command-line options. If ** Any remaining command-line argument begins with "-" print ** an error message and quit. */ void verify_all_options(void){ int i; @@ -457,11 +457,11 @@ ** Process the webpage specified by the PATH_INFO or REQUEST_URI ** environment variable. */ static void process_one_web_page(void){ const char *zPathInfo; - char *zPath; + char *zPath = NULL; int idx; int i, j; /* Find the page that the user has requested, construct and deliver that ** page.