chiark / gitweb /
Fixed a null pointer deref.
authorRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 19:49:08 +0000 (20:49 +0100)
committerRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 19:49:08 +0000 (20:49 +0100)
disobedience/playlists.c

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