mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix crash in bar { } blocks
This commit is contained in:
		
							parent
							
								
									5fbac4a17c
								
							
						
					
					
						commit
						b65e348233
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -1782,7 +1782,11 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) {
 | 
				
			||||||
	if (argc>1 && (*argv[1] == '\"' || *argv[1] == '\'')) {
 | 
						if (argc>1 && (*argv[1] == '\"' || *argv[1] == '\'')) {
 | 
				
			||||||
		strip_quotes(argv[1]);
 | 
							strip_quotes(argv[1]);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						if (handler->handle) {
 | 
				
			||||||
		results = handler->handle(argc-1, argv+1);
 | 
							results = handler->handle(argc-1, argv+1);
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							results = cmd_results_new(CMD_INVALID, argv[0], "This command is shimmed, but unimplemented");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	cleanup:
 | 
						cleanup:
 | 
				
			||||||
	free_argv(argc, argv);
 | 
						free_argv(argc, argv);
 | 
				
			||||||
	return results;
 | 
						return results;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue