diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-31 18:12:48 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-31 18:12:48 +0200 |
commit | b01e650546075f574068d89eb58101a88a8f5ed2 (patch) | |
tree | 1150b7ea5d147315e07efa4eae9bfd8fed500d58 /libpiano/src/piano.h | |
parent | 1dac515822e85646c2539d2c6261a9c55b6802ab (diff) | |
download | pianobar-b01e650546075f574068d89eb58101a88a8f5ed2.tar.gz pianobar-b01e650546075f574068d89eb58101a88a8f5ed2.tar.bz2 pianobar-b01e650546075f574068d89eb58101a88a8f5ed2.zip |
Fix genre station NULL pointer dereference
Obviously pandora changed the genre station api. Attention: Incompatible
libpiano abi change.
Diffstat (limited to 'libpiano/src/piano.h')
-rw-r--r-- | libpiano/src/piano.h | 8 |
1 files changed, 7 insertions, 1 deletions
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; |