Fix browse problem with empty content

This commit is contained in:
Ron Pedde 2006-03-19 05:26:51 +00:00
parent 7fe019693b
commit 0b7968d468

View File

@ -1250,7 +1250,7 @@ int db_sql_get_size(DBQUERYINFO *pinfo, SQL_ROW valarray) {
case queryTypeBrowseAlbums:
case queryTypeBrowseGenres:
case queryTypeBrowseComposers:
return DMAPLEN(valarray[0]);
return valarray[0] ? (8 + (int) strlen(valarray[0])) : 0;
case queryTypePlaylists:
size = 8; /* mlit */
size += 12; /* mimc - you get it whether you want it or not */