[xiph-commits] r13996 - trunk/ezstream/src
moritz at svn.xiph.org
moritz at svn.xiph.org
Tue Oct 16 07:28:23 PDT 2007
Author: moritz
Date: 2007-10-16 07:28:23 -0700 (Tue, 16 Oct 2007)
New Revision: 13996
Modified:
trunk/ezstream/src/ezstream.c
Log:
Ticket #1247: Don't dereference uninitialized junk pointers; this fixes a
crash when streaming standard input without also using a metadata program
(d'oh.)
Modified: trunk/ezstream/src/ezstream.c
===================================================================
--- trunk/ezstream/src/ezstream.c 2007-10-16 01:53:06 UTC (rev 13995)
+++ trunk/ezstream/src/ezstream.c 2007-10-16 14:28:23 UTC (rev 13996)
@@ -559,6 +559,9 @@
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)
More information about the commits
mailing list