Fossil SCM

Fix a compiler warning about possible use of an uninitialized variable. Looks like GCC 12 is confused though.

george 2025-03-13 00:59 trunk
Commit a4cc6e098c376b1846690e7ea004483629b077316991127d3d6a752d6410b4c8
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -2229,11 +2229,11 @@
22292229
}
22302230
addFileGlobDescription(zChng, &desc);
22312231
}else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){
22322232
/* If either p= or d= or both are present, ignore all other parameters
22332233
** other than n=, ft=, and bt= */
2234
- const char *zBaseName;
2234
+ const char *zBaseName = 0;
22352235
int np = 0, nd;
22362236
const char *zBackTo = 0;
22372237
const char *zFwdTo = 0;
22382238
int ridBackTo = 0;
22392239
int ridFwdTo = 0;
22402240
--- src/timeline.c
+++ src/timeline.c
@@ -2229,11 +2229,11 @@
2229 }
2230 addFileGlobDescription(zChng, &desc);
2231 }else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){
2232 /* If either p= or d= or both are present, ignore all other parameters
2233 ** other than n=, ft=, and bt= */
2234 const char *zBaseName;
2235 int np = 0, nd;
2236 const char *zBackTo = 0;
2237 const char *zFwdTo = 0;
2238 int ridBackTo = 0;
2239 int ridFwdTo = 0;
2240
--- src/timeline.c
+++ src/timeline.c
@@ -2229,11 +2229,11 @@
2229 }
2230 addFileGlobDescription(zChng, &desc);
2231 }else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){
2232 /* If either p= or d= or both are present, ignore all other parameters
2233 ** other than n=, ft=, and bt= */
2234 const char *zBaseName = 0;
2235 int np = 0, nd;
2236 const char *zBackTo = 0;
2237 const char *zFwdTo = 0;
2238 int ridBackTo = 0;
2239 int ridFwdTo = 0;
2240

Keyboard Shortcuts

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