commit | 4176a292354c77787237a093af41eb7b528c9cc5 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Feb 27 21:39:32 2017 +0100 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Wed Mar 01 10:42:28 2017 -0500 |
tree | d85368797b59707421720cf2c1903188b8cfab08 | |
parent | ddaf0afec7c640c752979de2ed7ff8991aaef6f8 [diff] |
libsemanage: never call memcpy with a NULL value clang's static analyzer reports "Argument with 'nonnull' attribute passed null" in append_str(), because argument t may be NULL but is used in a call to memcpy(). Make append_str() do nothing when called with t=NULL. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>