Fossil SCM

Fix a potentially uninitialized variable associated with the resent ticket report changes.

drh 2022-11-18 19:30 trunk
Commit d296ddb272c7f19fd558ff68b6bba1c1216513691d9c5c2b1d3c08ea875e9e7e
1 file changed +1 -1
+1 -1
--- src/report.c
+++ src/report.c
@@ -553,11 +553,11 @@
553553
zTitle = "";
554554
zSQL = ticket_report_template();
555555
zClrKey = ticket_key_template();
556556
}else{
557557
Stmt q;
558
- int hasJx;
558
+ int hasJx = 0;
559559
zDesc = 0;
560560
zMimetype = 0;
561561
zTag = 0;
562562
db_prepare(&q, "SELECT title, sqlcode, owner, cols, json_valid(jx) "
563563
"FROM reportfmt WHERE rn=%d",rn);
564564
--- src/report.c
+++ src/report.c
@@ -553,11 +553,11 @@
553 zTitle = "";
554 zSQL = ticket_report_template();
555 zClrKey = ticket_key_template();
556 }else{
557 Stmt q;
558 int hasJx;
559 zDesc = 0;
560 zMimetype = 0;
561 zTag = 0;
562 db_prepare(&q, "SELECT title, sqlcode, owner, cols, json_valid(jx) "
563 "FROM reportfmt WHERE rn=%d",rn);
564
--- src/report.c
+++ src/report.c
@@ -553,11 +553,11 @@
553 zTitle = "";
554 zSQL = ticket_report_template();
555 zClrKey = ticket_key_template();
556 }else{
557 Stmt q;
558 int hasJx = 0;
559 zDesc = 0;
560 zMimetype = 0;
561 zTag = 0;
562 db_prepare(&q, "SELECT title, sqlcode, owner, cols, json_valid(jx) "
563 "FROM reportfmt WHERE rn=%d",rn);
564

Keyboard Shortcuts

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