From b01e650546075f574068d89eb58101a88a8f5ed2 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 31 Jul 2010 18:12:48 +0200 Subject: Fix genre station NULL pointer dereference Obviously pandora changed the genre station api. Attention: Incompatible libpiano abi change. --- libpiano/src/piano.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libpiano/src/piano.h') diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h index fb97949..6b25b2d 100644 --- a/libpiano/src/piano.h +++ b/libpiano/src/piano.h @@ -87,9 +87,15 @@ typedef struct PianoArtist { struct PianoArtist *next; } PianoArtist_t; +typedef struct PianoGenre { + char *name; + char *musicId; + struct PianoGenre *next; +} PianoGenre_t; + typedef struct PianoGenreCategory { char *name; - PianoStation_t *stations; + PianoGenre_t *genres; struct PianoGenreCategory *next; } PianoGenreCategory_t; -- cgit v1.2.3