Fossil

Check-in [3cf8891e9d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Possible fix for regression reported on mailing list. It looks like there is already a better fix in [9807a05d8a].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | settings-regression
Files: files | file ages | folders
SHA1: 3cf8891e9d000e028a8c4666bdf94877f6ba67d2
User & Date: andybradford 2016-11-22 21:54:56.995
Original Comment: Possible fix for regression reported on mailing list.
Context
2016-11-22
21:54
Possible fix for regression reported on mailing list. It looks like there is already a better fix in [9807a05d8a]. Closed-Leaf check-in: 3cf8891e9d user: andybradford tags: settings-regression
2016-11-19
20:11
minor simplification, and don't free zUuid if it was NULL check-in: d6cb724e65 user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094

3095
3096
3097
3098
3099
3100
3101
** See also: configuration
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int exactFlag = find_option("exact",0,0)!=0;
  int unsetFlag = g.argv[1][0]=='u';
  verify_all_options();
  db_open_config(1, 0);
  if( !globalFlag ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA | OPEN_OK_NOT_FOUND, 0);
  }

  if( !g.repositoryOpen ){
    globalFlag = 1;
  }
  if( unsetFlag && g.argc!=3 ){
    usage("PROPERTY ?-global?");
  }








<




>







3083
3084
3085
3086
3087
3088
3089

3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
** See also: configuration
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int exactFlag = find_option("exact",0,0)!=0;
  int unsetFlag = g.argv[1][0]=='u';

  db_open_config(1, 0);
  if( !globalFlag ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA | OPEN_OK_NOT_FOUND, 0);
  }
  verify_all_options();
  if( !g.repositoryOpen ){
    globalFlag = 1;
  }
  if( unsetFlag && g.argc!=3 ){
    usage("PROPERTY ?-global?");
  }