Fossil SCM
Fix a potentially uninitialized variable associated with the resent ticket report changes.
Commit
d296ddb272c7f19fd558ff68b6bba1c1216513691d9c5c2b1d3c08ea875e9e7e
Parent
fcf17b28a902c01…
1 file changed
+1
-1
+1
-1
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -553,11 +553,11 @@ | ||
| 553 | 553 | zTitle = ""; |
| 554 | 554 | zSQL = ticket_report_template(); |
| 555 | 555 | zClrKey = ticket_key_template(); |
| 556 | 556 | }else{ |
| 557 | 557 | Stmt q; |
| 558 | - int hasJx; | |
| 558 | + int hasJx = 0; | |
| 559 | 559 | zDesc = 0; |
| 560 | 560 | zMimetype = 0; |
| 561 | 561 | zTag = 0; |
| 562 | 562 | db_prepare(&q, "SELECT title, sqlcode, owner, cols, json_valid(jx) " |
| 563 | 563 | "FROM reportfmt WHERE rn=%d",rn); |
| 564 | 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; |
| 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 |