Fossil SCM
Fix a compiler warning about possible use of an uninitialized variable. Looks like GCC 12 is confused though.
Commit
a4cc6e098c376b1846690e7ea004483629b077316991127d3d6a752d6410b4c8
Parent
3c2aba79a72f3df…
1 file changed
+1
-1
+1
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -2229,11 +2229,11 @@ | ||
| 2229 | 2229 | } |
| 2230 | 2230 | addFileGlobDescription(zChng, &desc); |
| 2231 | 2231 | }else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){ |
| 2232 | 2232 | /* If either p= or d= or both are present, ignore all other parameters |
| 2233 | 2233 | ** other than n=, ft=, and bt= */ |
| 2234 | - const char *zBaseName; | |
| 2234 | + const char *zBaseName = 0; | |
| 2235 | 2235 | int np = 0, nd; |
| 2236 | 2236 | const char *zBackTo = 0; |
| 2237 | 2237 | const char *zFwdTo = 0; |
| 2238 | 2238 | int ridBackTo = 0; |
| 2239 | 2239 | int ridFwdTo = 0; |
| 2240 | 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; |
| 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 |