summaryrefslogtreecommitdiff
path: root/libpiano/src/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-07-31 18:12:48 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-07-31 18:12:48 +0200
commitb01e650546075f574068d89eb58101a88a8f5ed2 (patch)
tree1150b7ea5d147315e07efa4eae9bfd8fed500d58 /libpiano/src/piano.h
parent1dac515822e85646c2539d2c6261a9c55b6802ab (diff)
downloadpianobar-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.h8
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;