sticker/Database: pass NarrowPath to sqlite3_open()
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1171
This commit is contained in:
		
							
								
								
									
										2
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NEWS
									
									
									
									
									
								
							| @@ -1,4 +1,6 @@ | ||||
| ver 0.22.9 (not yet released) | ||||
| * Windows | ||||
|   - fix build failure with SQLite | ||||
|  | ||||
| ver 0.22.8 (2021/05/22) | ||||
| * fix crash bug in "albumart" command (0.22.7 regression) | ||||
|   | ||||
| @@ -21,6 +21,7 @@ | ||||
| #include "Sticker.hxx" | ||||
| #include "lib/sqlite/Util.hxx" | ||||
| #include "fs/Path.hxx" | ||||
| #include "fs/NarrowPath.hxx" | ||||
| #include "Idle.hxx" | ||||
| #include "util/StringCompare.hxx" | ||||
| #include "util/ScopeExit.hxx" | ||||
| @@ -82,7 +83,7 @@ static const char sticker_sql_create[] = | ||||
| 	""; | ||||
|  | ||||
| StickerDatabase::StickerDatabase(Path path) | ||||
| 	:db(path.c_str()) | ||||
| 	:db(NarrowPath(path)) | ||||
| { | ||||
| 	assert(!path.IsNull()); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann