• 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
bin Loading commit data...
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
nx-X11 Loading commit data...
nxcomp Loading commit data...
nxcompext Loading commit data...
nxcompshad Loading commit data...
nxproxy Loading commit data...
testscripts Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.nxcomp Loading commit data...
Makefile Loading commit data...
README.NX-development Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
fix-patch-whitespace Loading commit data...
make-changelog.sh Loading commit data...
nx-libs.spec Loading commit data...
replace.sh Loading commit data...
roll-tarballs.sh Loading commit data...
version.sh Loading commit data...