Fossil SCM

Fix; second argument of db_get_versioned() is not that of db_get().

jan 2016-01-03 22:46 jan-manifest-tags
Commit 226e7c28427e9d191d7fb62c25488d195ce1ecf2
1 file changed +2 -1
+2 -1
--- src/db.c
+++ src/db.c
@@ -2223,11 +2223,12 @@
22232223
** which letters can be used to represent flags (any permutation fo flags must
22242224
** not be able to fully form one of the boolean values).
22252225
*/
22262226
int db_get_manifest_setting(void){
22272227
int flg;
2228
- char *zVal = db_get_versioned("manifest", "off");
2228
+ char *zNVVal = db_get("manifest", "off");
2229
+ char *zVal = db_get_versioned("manifest", zNVVal);
22292230
if( is_false(zVal) ){
22302231
return 0;
22312232
}else if( is_truth(zVal) ) {
22322233
return MFESTFLG_RAW|MFESTFLG_UUID;
22332234
}
22342235
--- src/db.c
+++ src/db.c
@@ -2223,11 +2223,12 @@
2223 ** which letters can be used to represent flags (any permutation fo flags must
2224 ** not be able to fully form one of the boolean values).
2225 */
2226 int db_get_manifest_setting(void){
2227 int flg;
2228 char *zVal = db_get_versioned("manifest", "off");
 
2229 if( is_false(zVal) ){
2230 return 0;
2231 }else if( is_truth(zVal) ) {
2232 return MFESTFLG_RAW|MFESTFLG_UUID;
2233 }
2234
--- src/db.c
+++ src/db.c
@@ -2223,11 +2223,12 @@
2223 ** which letters can be used to represent flags (any permutation fo flags must
2224 ** not be able to fully form one of the boolean values).
2225 */
2226 int db_get_manifest_setting(void){
2227 int flg;
2228 char *zNVVal = db_get("manifest", "off");
2229 char *zVal = db_get_versioned("manifest", zNVVal);
2230 if( is_false(zVal) ){
2231 return 0;
2232 }else if( is_truth(zVal) ) {
2233 return MFESTFLG_RAW|MFESTFLG_UUID;
2234 }
2235

Keyboard Shortcuts

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