Remove unnecessary notification field initializations
Since notification_create was implemented memory is zeroed when a notification is allocated, as such we don't need to manually set things to null.
This commit is contained in:
		
							parent
							
								
									9ec8dbe5db
								
							
						
					
					
						commit
						655abd7cc8
					
				| @ -352,15 +352,6 @@ int dunst_main(int argc, char *argv[]) | ||||
|                 n->allow_markup = false; | ||||
|                 n->plain_text = true; | ||||
|                 n->urgency = LOW; | ||||
|                 n->icon = NULL; | ||||
|                 n->raw_icon = NULL; | ||||
|                 n->category = NULL; | ||||
|                 n->msg = NULL; | ||||
|                 n->dbus_client = NULL; | ||||
|                 n->color_strings[0] = NULL; | ||||
|                 n->color_strings[1] = NULL; | ||||
|                 n->actions = NULL; | ||||
|                 n->urls = NULL; | ||||
|                 notification_init(n, 0); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis