fix segfault
This commit is contained in:
		
							parent
							
								
									1b04f51d67
								
							
						
					
					
						commit
						70839e1321
					
				
							
								
								
									
										2
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dunst.c
									
									
									
									
									
								
							| @ -935,7 +935,7 @@ int close_notification_by_id(int id, int reason) | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         for (n_queue *iter = queue; iter; iter = iter->next) { |         for (n_queue *iter = queue; iter; iter = iter->next) { | ||||||
|                 notification *n = iter->next->n; |                 notification *n = iter->n; | ||||||
|                 if (n->id == id) { |                 if (n->id == id) { | ||||||
|                         n_queue_remove(&queue, n); |                         n_queue_remove(&queue, n); | ||||||
|                         n_stack_push(&history, n); |                         n_stack_push(&history, n); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse