[vlc-devel] [vlc-commits] archive: avoid duplicate strchr() call

Jean-Baptiste Kempf jb at videolan.org
Sat Nov 15 12:40:45 CET 2014


On 15 Nov, Rémi Denis-Courmont wrote :
> +    const char *psz_name = psz_base + (sep - p_access->psz_location);
> +    *(psz_name++) = '\0';

This fails to compile here.
../../modules/access/archive/access.c:320:19: erreur: assignment of
read-only location ‘*psz_name++’

I'm unsure of the right fix, tbh.

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list