fixed: crash when accessing rhytmbox dapp shares
authorspiff <spiff@xbmc.org>
Sat, 5 Nov 2011 10:30:44 +0000 (11:30 +0100)
committerspiff <spiff@xbmc.org>
Sat, 5 Nov 2011 10:32:10 +0000 (11:32 +0100)
this just fixes the crash, they still don't work properly.
see ticket #12178

lib/libXDAAP/libXDAAP.c

index ddec6e5..50ddcd4 100644 (file)
@@ -606,6 +606,8 @@ static int Priv_DAAP_ClientHost_GetDatabaseItems(DAAP_SClientHost *pCHThis,
     HTTP_RETURN_IF_FAILED(httpRes);
 
     items.h.expecting = QUERY_GENERICLISTING;
+    items.returnedcount = 0;
+    items.listitems = 0;
     dmap_parseProtocolData(httpRes->contentlen, httpRes->data,
                            (protoParseResult*)&items);