mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[common] option: fix another invalid usage of an unset variable
This commit is contained in:
		@@ -297,6 +297,13 @@ bool option_parse(int argc, char * argv[])
 | 
			
		||||
      free(arg);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!o)
 | 
			
		||||
    {
 | 
			
		||||
      DEBUG_WARN("Ignored unknown argument: %s", argv[a]);
 | 
			
		||||
      free(value);
 | 
			
		||||
      continue;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!value)
 | 
			
		||||
    {
 | 
			
		||||
      if (o->type == OPTION_TYPE_BOOL)
 | 
			
		||||
@@ -311,13 +318,6 @@ bool option_parse(int argc, char * argv[])
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!o)
 | 
			
		||||
    {
 | 
			
		||||
      DEBUG_WARN("Ignored unknown argument: %s", argv[a]);
 | 
			
		||||
      free(value);
 | 
			
		||||
      continue;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    option_set(o, value);
 | 
			
		||||
    free(value);
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user