Fossil SCM

Fix harmless compiler warning.

mistachkin 2017-11-03 06:46 trunk
Commit 5aa37859d0bf2309ad6a2263bfee0b4ee62ecb2690abdc5a1250a1b1de2e0f0b
1 file changed +1 -1
+1 -1
--- src/doc.c
+++ src/doc.c
@@ -573,11 +573,11 @@
573573
** For fossil-doc documents and for markdown documents, text of the
574574
** form: "href='$ROOT/" or "action='$ROOT" has the $ROOT name expanded
575575
** to the top-level of the repository.
576576
*/
577577
void doc_page(void){
578
- const char *zName; /* Argument to the /doc page */
578
+ const char *zName = 0; /* Argument to the /doc page */
579579
const char *zOrigName = "?"; /* Original document name */
580580
const char *zMime; /* Document MIME type */
581581
char *zCheckin = "tip"; /* The check-in holding the document */
582582
char *zPathSuffix = ""; /* Text to append to g.zPath */
583583
int vid = 0; /* Artifact of check-in */
584584
--- src/doc.c
+++ src/doc.c
@@ -573,11 +573,11 @@
573 ** For fossil-doc documents and for markdown documents, text of the
574 ** form: "href='$ROOT/" or "action='$ROOT" has the $ROOT name expanded
575 ** to the top-level of the repository.
576 */
577 void doc_page(void){
578 const char *zName; /* Argument to the /doc page */
579 const char *zOrigName = "?"; /* Original document name */
580 const char *zMime; /* Document MIME type */
581 char *zCheckin = "tip"; /* The check-in holding the document */
582 char *zPathSuffix = ""; /* Text to append to g.zPath */
583 int vid = 0; /* Artifact of check-in */
584
--- src/doc.c
+++ src/doc.c
@@ -573,11 +573,11 @@
573 ** For fossil-doc documents and for markdown documents, text of the
574 ** form: "href='$ROOT/" or "action='$ROOT" has the $ROOT name expanded
575 ** to the top-level of the repository.
576 */
577 void doc_page(void){
578 const char *zName = 0; /* Argument to the /doc page */
579 const char *zOrigName = "?"; /* Original document name */
580 const char *zMime; /* Document MIME type */
581 char *zCheckin = "tip"; /* The check-in holding the document */
582 char *zPathSuffix = ""; /* Text to append to g.zPath */
583 int vid = 0; /* Artifact of check-in */
584

Keyboard Shortcuts

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