diff options
author | Max Kellermann <max@duempel.org> | 2008-03-26 10:37:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-03-26 10:37:36 +0000 |
commit | c5b524e3762723a200156b79efd58192db320e5b (patch) | |
tree | 9dac5dabb515cfab1b68afc88739bc3937b3f26d /src/inputPlugins/oggvorbis_plugin.c | |
parent | 54b544c2f4c0b5425d6ff12596a9e82fd8d783d2 (diff) | |
download | mpd-c5b524e3762723a200156b79efd58192db320e5b.tar.gz mpd-c5b524e3762723a200156b79efd58192db320e5b.tar.xz mpd-c5b524e3762723a200156b79efd58192db320e5b.zip |
eliminated duplicate initialization
Local variables which are never read before the first assignment don't
need initialization. Saves a few bytes of text. Also don't reset
variables which are never read until function return.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/oggvorbis_plugin.c')
-rw-r--r-- | src/inputPlugins/oggvorbis_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c index 3bcc505f8..ec1c44ac6 100644 --- a/src/inputPlugins/oggvorbis_plugin.c +++ b/src/inputPlugins/oggvorbis_plugin.c @@ -61,7 +61,7 @@ typedef struct _OggCallbackData { static size_t ogg_read_cb(void *ptr, size_t size, size_t nmemb, void *vdata) { - size_t ret = 0; + size_t ret; OggCallbackData *data = (OggCallbackData *) vdata; while (1) { @@ -352,7 +352,7 @@ static int oggvorbis_decode(OutputBuffer * cb, DecoderControl * dc, static MpdTag *oggvorbis_TagDup(char *file) { - MpdTag *ret = NULL; + MpdTag *ret; FILE *fp; OggVorbis_File vf; |