• Alan Coopersmith's avatar
    lcfile: skip over any null entries in args list · bde3d8b1
    Alan Coopersmith authored
    Previous code seemed to assume that printf("%s", NULL) would result
    in a 0-length string, not "(null)" or similar, but since there's no
    point looking for files in "(null)/filepath...", instead we just
    skip over NULL entries in search paths when generating file names.
    
    In the *DirName() functions, this effectively just moves the "bail on
    NULL in arg[i]" check up from the later code that assigned it to targetdir
    and then bailed if that was NULL.
    
    Not sure how there ever could be a NULL in arg[i], given the current
    implementation of XlcParsePath, but it's easy enough to check once and
    reject up front instead of on every reference.
    Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
    bde3d8b1
Name
Last commit
Last update
..
config Loading commit data...
extras/Mesa Loading commit data...
include Loading commit data...
lib Loading commit data...
programs Loading commit data...
Imakefile Loading commit data...
Makefile Loading commit data...
registry Loading commit data...
x-indent-all.sh Loading commit data...
x-indent.sh Loading commit data...
xf86Date.h Loading commit data...