<div class="gmail_quote">On Mon, Nov 2, 2009 at 3:43 PM, Rémi Duraffort <span dir="ltr"><<a href="mailto:ivoire@videolan.org">ivoire@videolan.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If the variable "podcast-urls" is "" (an empty but non-null string) the<br>
return value of var_GetNonEmptyString will be NULL => segv.<br>
In this case, the best way is to do:<br> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
char psz_urls = var_GetString( p_sd, "podcast-urls" );<br>
if( psz_urls )<br>
<div class="im">    ParseUrls( p_sd, psz_urls );<br>
free( psz_urls );<br>
<br></div></blockquote><div><br></div><div>I just moved the check if( psz_urls ) into ParseUrls, it still exists.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Moreover, I now get a crash when launching the podcast SD:<br></blockquote><div><br></div><div><br></div><div>That's strange, it works for me. I'll check that out. </div></div>