mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	fix "directive argument is null" errors
This commit is contained in:
		
							parent
							
								
									5fab8a2ad4
								
							
						
					
					
						commit
						a73e8f1328
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -624,8 +624,8 @@ struct criteria *criteria_parse(char *raw, char **error_arg) {
 | 
				
			||||||
				in_quotes = false;
 | 
									in_quotes = false;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			unescape(value);
 | 
								unescape(value);
 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
			sway_log(SWAY_DEBUG, "Found pair: %s=%s", name, value);
 | 
								sway_log(SWAY_DEBUG, "Found pair: %s=%s", name, value);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if (!parse_token(criteria, name, value)) {
 | 
							if (!parse_token(criteria, name, value)) {
 | 
				
			||||||
			*error_arg = error;
 | 
								*error_arg = error;
 | 
				
			||||||
			goto cleanup;
 | 
								goto cleanup;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -705,8 +705,7 @@ void seat_configure_xcursor(struct sway_seat *seat) {
 | 
				
			||||||
		seat->cursor->xcursor_manager =
 | 
							seat->cursor->xcursor_manager =
 | 
				
			||||||
			wlr_xcursor_manager_create(cursor_theme, 24);
 | 
								wlr_xcursor_manager_create(cursor_theme, 24);
 | 
				
			||||||
		if (sway_assert(seat->cursor->xcursor_manager,
 | 
							if (sway_assert(seat->cursor->xcursor_manager,
 | 
				
			||||||
					"Cannot create XCursor manager for theme %s",
 | 
										"Cannot create XCursor manager for theme")) {
 | 
				
			||||||
					cursor_theme)) {
 | 
					 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue