Fossil SCM
Fix a potentially uninitialized variable in the /timeline.
Commit
9d5174531f7ece6cfd3f01b57c2587e623f7e803402b9553df97a46ee53bb686
Parent
4e51891e47f4829…
1 file changed
+1
-1
+1
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -2930,11 +2930,11 @@ | ||
| 2930 | 2930 | Matcher *pLeftBranch; |
| 2931 | 2931 | if( P("bo")!=0 ){ |
| 2932 | 2932 | pLeftBranch = match_create(MS_BRLIST, P("bo")); |
| 2933 | 2933 | }else if( zBrName ){ |
| 2934 | 2934 | pLeftBranch = match_create(matchStyle, zBrName); |
| 2935 | - }else if( zTagName ){ | |
| 2935 | + }else{ | |
| 2936 | 2936 | pLeftBranch = match_create(matchStyle, zTagName); |
| 2937 | 2937 | } |
| 2938 | 2938 | www_print_timeline(&q, tmFlags, zThisUser, zThisTag, pLeftBranch, |
| 2939 | 2939 | selectedRid, secondaryRid, 0); |
| 2940 | 2940 | match_free(pLeftBranch); |
| 2941 | 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 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 |