Fossil SCM
TAG_BRANCH is unused in this query
Commit
170c3c73632ac83439ebaa237df450e6ae7eb746
Parent
3957e9610f806e5…
1 file changed
+1
-5
+1
-5
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -903,11 +903,10 @@ | ||
| 903 | 903 | /* |
| 904 | 904 | ** Return a pointer to a constant string that forms the basis |
| 905 | 905 | ** for a timeline query for the WWW interface. |
| 906 | 906 | */ |
| 907 | 907 | const char *timeline_query_for_www(void){ |
| 908 | - static char *zBase = 0; | |
| 909 | 908 | static const char zBaseSql[] = |
| 910 | 909 | @ SELECT |
| 911 | 910 | @ blob.rid AS blobRid, |
| 912 | 911 | @ uuid AS uuid, |
| 913 | 912 | @ datetime(event.mtime,'localtime') AS timestamp, |
| @@ -923,14 +922,11 @@ | ||
| 923 | 922 | @ brief AS brief, |
| 924 | 923 | @ event.mtime AS mtime |
| 925 | 924 | @ FROM event CROSS JOIN blob |
| 926 | 925 | @ WHERE blob.rid=event.objid |
| 927 | 926 | ; |
| 928 | - if( zBase==0 ){ | |
| 929 | - zBase = mprintf(zBaseSql, TAG_BRANCH, TAG_BRANCH); | |
| 930 | - } | |
| 931 | - return zBase; | |
| 927 | + return zBaseSql; | |
| 932 | 928 | } |
| 933 | 929 | |
| 934 | 930 | /* |
| 935 | 931 | ** Generate a submenu element with a single parameter change. |
| 936 | 932 | */ |
| 937 | 933 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -903,11 +903,10 @@ | |
| 903 | /* |
| 904 | ** Return a pointer to a constant string that forms the basis |
| 905 | ** for a timeline query for the WWW interface. |
| 906 | */ |
| 907 | const char *timeline_query_for_www(void){ |
| 908 | static char *zBase = 0; |
| 909 | static const char zBaseSql[] = |
| 910 | @ SELECT |
| 911 | @ blob.rid AS blobRid, |
| 912 | @ uuid AS uuid, |
| 913 | @ datetime(event.mtime,'localtime') AS timestamp, |
| @@ -923,14 +922,11 @@ | |
| 923 | @ brief AS brief, |
| 924 | @ event.mtime AS mtime |
| 925 | @ FROM event CROSS JOIN blob |
| 926 | @ WHERE blob.rid=event.objid |
| 927 | ; |
| 928 | if( zBase==0 ){ |
| 929 | zBase = mprintf(zBaseSql, TAG_BRANCH, TAG_BRANCH); |
| 930 | } |
| 931 | return zBase; |
| 932 | } |
| 933 | |
| 934 | /* |
| 935 | ** Generate a submenu element with a single parameter change. |
| 936 | */ |
| 937 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -903,11 +903,10 @@ | |
| 903 | /* |
| 904 | ** Return a pointer to a constant string that forms the basis |
| 905 | ** for a timeline query for the WWW interface. |
| 906 | */ |
| 907 | const char *timeline_query_for_www(void){ |
| 908 | static const char zBaseSql[] = |
| 909 | @ SELECT |
| 910 | @ blob.rid AS blobRid, |
| 911 | @ uuid AS uuid, |
| 912 | @ datetime(event.mtime,'localtime') AS timestamp, |
| @@ -923,14 +922,11 @@ | |
| 922 | @ brief AS brief, |
| 923 | @ event.mtime AS mtime |
| 924 | @ FROM event CROSS JOIN blob |
| 925 | @ WHERE blob.rid=event.objid |
| 926 | ; |
| 927 | return zBaseSql; |
| 928 | } |
| 929 | |
| 930 | /* |
| 931 | ** Generate a submenu element with a single parameter change. |
| 932 | */ |
| 933 |