Fossil SCM

Fix a potentially uninitialized variable in the /timeline.

drh 2024-12-24 03:45 rl-determines-graph-order
Commit 9d5174531f7ece6cfd3f01b57c2587e623f7e803402b9553df97a46ee53bb686
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -2930,11 +2930,11 @@
29302930
Matcher *pLeftBranch;
29312931
if( P("bo")!=0 ){
29322932
pLeftBranch = match_create(MS_BRLIST, P("bo"));
29332933
}else if( zBrName ){
29342934
pLeftBranch = match_create(matchStyle, zBrName);
2935
- }else if( zTagName ){
2935
+ }else{
29362936
pLeftBranch = match_create(matchStyle, zTagName);
29372937
}
29382938
www_print_timeline(&q, tmFlags, zThisUser, zThisTag, pLeftBranch,
29392939
selectedRid, secondaryRid, 0);
29402940
match_free(pLeftBranch);
29412941
--- src/timeline.c
+++ src/timeline.c
@@ -2930,11 +2930,11 @@
2930 Matcher *pLeftBranch;
2931 if( P("bo")!=0 ){
2932 pLeftBranch = match_create(MS_BRLIST, P("bo"));
2933 }else if( zBrName ){
2934 pLeftBranch = match_create(matchStyle, zBrName);
2935 }else if( zTagName ){
2936 pLeftBranch = match_create(matchStyle, zTagName);
2937 }
2938 www_print_timeline(&q, tmFlags, zThisUser, zThisTag, pLeftBranch,
2939 selectedRid, secondaryRid, 0);
2940 match_free(pLeftBranch);
2941
--- src/timeline.c
+++ src/timeline.c
@@ -2930,11 +2930,11 @@
2930 Matcher *pLeftBranch;
2931 if( P("bo")!=0 ){
2932 pLeftBranch = match_create(MS_BRLIST, P("bo"));
2933 }else if( zBrName ){
2934 pLeftBranch = match_create(matchStyle, zBrName);
2935 }else{
2936 pLeftBranch = match_create(matchStyle, zTagName);
2937 }
2938 www_print_timeline(&q, tmFlags, zThisUser, zThisTag, pLeftBranch,
2939 selectedRid, secondaryRid, 0);
2940 match_free(pLeftBranch);
2941

Keyboard Shortcuts

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