# HG changeset patch # User rbultje # Date 1283039726 0 # Node ID 2f0124b97014558729893d2f39c344c542a92daf # Parent d2d2972c97153df487ed8db1f2b8bbb4d7f3fb5c stream_selection can be freed in the fail case, in which case it's unassigned. Therefore, init it with NULL to prevent a crash on invalid streams. Patch by Zhentan Feng . diff -r d2d2972c9715 -r 2f0124b97014 mmsh.c --- a/mmsh.c Thu Aug 26 10:03:14 2010 +0000 +++ b/mmsh.c Sat Aug 28 23:55:26 2010 +0000 @@ -214,7 +214,7 @@ { int i, port, err; char httpname[256], path[256], host[128], location[1024]; - char *stream_selection; + char *stream_selection = NULL; char headers[1024]; MMSHContext *mmsh; MMSContext *mms;