mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	scanner: Make sure arguments have names.
This commit is contained in:
		
							parent
							
								
									5cff8244f2
								
							
						
					
					
						commit
						fa51801786
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -350,6 +350,9 @@ start_element(void *data, const char *element_name, const char **atts)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		ctx->message = message;
 | 
							ctx->message = message;
 | 
				
			||||||
	} else if (strcmp(element_name, "arg") == 0) {
 | 
						} else if (strcmp(element_name, "arg") == 0) {
 | 
				
			||||||
 | 
							if (name == NULL)
 | 
				
			||||||
 | 
								fail(ctx, "no argument name given");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		arg = malloc(sizeof *arg);
 | 
							arg = malloc(sizeof *arg);
 | 
				
			||||||
		arg->name = strdup(name);
 | 
							arg->name = strdup(name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue