Fossil SCM

Fix harmless compiler warnings.

drh 2015-01-29 01:25 trunk
Commit ef108998c4fb82665f2cacaf1bd03acdbcba3e6c
1 file changed +2 -2
+2 -2
--- src/doc.c
+++ src/doc.c
@@ -383,13 +383,13 @@
383383
** then FILE is completely replaced by "404.md" and tried. If that is
384384
** not found, then a default 404 screen is generated.
385385
*/
386386
void doc_page(void){
387387
const char *zName; /* Argument to the /doc page */
388
- const char *zOrigName; /* Original document name */
388
+ const char *zOrigName = "?"; /* Original document name */
389389
const char *zMime; /* Document MIME type */
390
- char *zCheckin; /* The checkin holding the document */
390
+ char *zCheckin = "tip"; /* The checkin holding the document */
391391
int vid = 0; /* Artifact of checkin */
392392
int rid = 0; /* Artifact of file */
393393
int i; /* Loop counter */
394394
Blob filebody; /* Content of the documentation file */
395395
int nMiss = 0; /* Failed attempts to find the document */
396396
--- src/doc.c
+++ src/doc.c
@@ -383,13 +383,13 @@
383 ** then FILE is completely replaced by "404.md" and tried. If that is
384 ** not found, then a default 404 screen is generated.
385 */
386 void doc_page(void){
387 const char *zName; /* Argument to the /doc page */
388 const char *zOrigName; /* Original document name */
389 const char *zMime; /* Document MIME type */
390 char *zCheckin; /* The checkin holding the document */
391 int vid = 0; /* Artifact of checkin */
392 int rid = 0; /* Artifact of file */
393 int i; /* Loop counter */
394 Blob filebody; /* Content of the documentation file */
395 int nMiss = 0; /* Failed attempts to find the document */
396
--- src/doc.c
+++ src/doc.c
@@ -383,13 +383,13 @@
383 ** then FILE is completely replaced by "404.md" and tried. If that is
384 ** not found, then a default 404 screen is generated.
385 */
386 void doc_page(void){
387 const char *zName; /* Argument to the /doc page */
388 const char *zOrigName = "?"; /* Original document name */
389 const char *zMime; /* Document MIME type */
390 char *zCheckin = "tip"; /* The checkin holding the document */
391 int vid = 0; /* Artifact of checkin */
392 int rid = 0; /* Artifact of file */
393 int i; /* Loop counter */
394 Blob filebody; /* Content of the documentation file */
395 int nMiss = 0; /* Failed attempts to find the document */
396

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button