1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00

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
This commit is contained in:
moritz 2007-10-16 14:28:23 +00:00
parent 29e8441274
commit 8460e4bf81

View File

@ -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)