ref: 4aee4f20245e224d1500676d7bd1a42985b3db03
parent: a754ee9f8591a7773426988e8bbd5d18d0494d03
author: Jacob Moody <[email protected]>
date: Sun Dec 15 22:53:06 EST 2019
Fix crash when switching playlists after dumping.
--- a/lib.c
+++ b/lib.c
@@ -91,8 +91,9 @@
/* TODO: rename chan to imply this use */
toload = recvp(loadc);
free(lib.name);
- lib.name = toload;
+ lib.name = strdup(toload);
dumplib(&lib);
+ break;
}
handlemsg(msg);
break;