[vlc-devel] [PATCH v2 3/13] platform: avoid hard coded temp dir path in vlc_memfd()

Rémi Denis-Courmont remi at remlab.net
Tue Oct 6 22:27:58 CEST 2020


Le tiistaina 6. lokakuuta 2020, 23.12.51 EEST Lyndon Brown a écrit :
> We can't just do a getenv() call only though instead;

Sure you can. getenv() and NULL comparison. No strdup() involved.

> Many linux
> distros (like mine) leave $TMPDIR unset, so we'd need to grab the env
> var, then replace with "/tmp" if null.

And so ... ?

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list