Fix processing of sticker database path
After a previous refactor, the current code fails on paths that need expansion (e.g, '~/.mpd/sticker.db'), because we are not passing the correct path to the sticker database code. Pass the expanded (and previously unused) string instead of the original string. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
		 Dan McGee
					Dan McGee
				
			
				
					committed by
					
						 Max Kellermann
						Max Kellermann
					
				
			
			
				
	
			
			
			 Max Kellermann
						Max Kellermann
					
				
			
						parent
						
							167242fec0
						
					
				
				
					commit
					1a57fa095f
				
			| @@ -194,8 +194,7 @@ glue_sticker_init(void) | ||||
| 	if (sticker_file == NULL && error != NULL) | ||||
| 		MPD_ERROR("%s", error->message); | ||||
|  | ||||
| 	if (!sticker_global_init(config_get_string(CONF_STICKER_FILE, NULL), | ||||
| 				 &error)) | ||||
| 	if (!sticker_global_init(sticker_file, &error)) | ||||
| 		MPD_ERROR("%s", error->message); | ||||
|  | ||||
| 	g_free(sticker_file); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user