From 8460e4bf8119f0de03c2d00eb9a7ecbe5f3d6679 Mon Sep 17 00:00:00 2001 From: moritz Date: Tue, 16 Oct 2007 14:28:23 +0000 Subject: [PATCH] Ticket #1247: Don't dereference uninitialized junk pointers; this fixes a crash when streaming standard input without also using a metadata program (d'oh.) git-svn-id: https://svn.xiph.org/trunk/ezstream@13996 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/ezstream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ezstream.c b/src/ezstream.c index 614fb13..be08376 100644 --- a/src/ezstream.c +++ b/src/ezstream.c @@ -559,6 +559,9 @@ openResource(shout_t *shout, const char *fileName, int *popenFlag, char *pCommandString = NULL; metadata_t *mdata; + if (mdata_p != NULL) + *mdata_p = NULL; + if (strcmp(fileName, "stdin") == 0) { if (metadataFromProgram) { if ((mdata = getMetadata(pezConfig->metadataProgram)) == NULL)