chiark / gitweb /
Fixed another null pointer deref in the same line!
authorRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 20:13:47 +0000 (21:13 +0100)
committerRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 20:13:47 +0000 (21:13 +0100)
Doh!

disobedience/playlists.c

index c1a857d..c95db43 100644 (file)
@@ -601,7 +601,7 @@ static void playlist_new_details(char **namep,
   if(privatep) *privatep = private;
   if(namep) *namep = name;
   if(fullnamep) {
-    if(shared) *fullnamep = *namep;
+    if(shared) *fullnamep = name;
     else byte_xasprintf(fullnamep, "%s.%s", config->username, name);
   }
 }