diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-09 23:02:12 -0700 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:28 +0200 |
commit | bde3d8b141ff42c1f6828e5ed1467b691e54b253 (patch) | |
tree | 888ea4b977950dd12aa143132e52b3c055e188d9 /nx-libs.spec | |
parent | 7bca34528c6e693ce086cd8ddc92ede467448767 (diff) | |
download | nx-libs-bde3d8b141ff42c1f6828e5ed1467b691e54b253.tar.gz nx-libs-bde3d8b141ff42c1f6828e5ed1467b691e54b253.tar.bz2 nx-libs-bde3d8b141ff42c1f6828e5ed1467b691e54b253.zip |
lcfile: skip over any null entries in args list
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: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-libs.spec')
0 files changed, 0 insertions, 0 deletions