Fossil SCM
Fix harmless compiler warnings.
Commit
ef108998c4fb82665f2cacaf1bd03acdbcba3e6c
Parent
bdfbbddc8f170f4…
1 file changed
+2
-2
+2
-2
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -383,13 +383,13 @@ | ||
| 383 | 383 | ** then FILE is completely replaced by "404.md" and tried. If that is |
| 384 | 384 | ** not found, then a default 404 screen is generated. |
| 385 | 385 | */ |
| 386 | 386 | void doc_page(void){ |
| 387 | 387 | const char *zName; /* Argument to the /doc page */ |
| 388 | - const char *zOrigName; /* Original document name */ | |
| 388 | + const char *zOrigName = "?"; /* Original document name */ | |
| 389 | 389 | const char *zMime; /* Document MIME type */ |
| 390 | - char *zCheckin; /* The checkin holding the document */ | |
| 390 | + char *zCheckin = "tip"; /* The checkin holding the document */ | |
| 391 | 391 | int vid = 0; /* Artifact of checkin */ |
| 392 | 392 | int rid = 0; /* Artifact of file */ |
| 393 | 393 | int i; /* Loop counter */ |
| 394 | 394 | Blob filebody; /* Content of the documentation file */ |
| 395 | 395 | int nMiss = 0; /* Failed attempts to find the document */ |
| 396 | 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; /* 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 |