]> git.cworth.org Git - tar/commit
Avoid undefined behavior of passing NULL to strcmp 411485
authorRaúl Sánchez Siles <rss@barracuda.es>
Tue, 4 Aug 2009 21:17:12 +0000 (14:17 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 5 Aug 2009 00:15:58 +0000 (17:15 -0700)
commitc38ee8cdbb19a3e84b3bb977098e89bd848e1ac1
tree007daf8affd1141ffe2621512da7fbc1d513de48
parent04176c5e3a481e57b4c6b10fdb6b4a5d82f213f2
Avoid undefined behavior of passing NULL to strcmp

Having a blank line in the file passed to the -T option will cause
an entry in the argv array to be NULL. To avoid invoking undefined
behavior, we take care not to pass these NULL values to strcmp.
debian/changelog
lib/getopt.c