commit | d2021de5cf94d7a55181004beee296b310901718 | [log] [tgz] |
---|---|---|
author | Brian Behlendorf <behlendorf1@llnl.gov> | Mon Mar 19 08:39:32 2007 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Mar 19 08:39:32 2007 -0400 |
tree | f9f83f59ba30189f976c6c722a90fd594da52238 | |
parent | 12f91959993f0d2882592427c94f35f32436e03a [diff] |
[COVERITY] Fix bad error checking for NULL parameter in ss library Looks like flawed reasoning. Here if info_dir is NULL then you are guaranteed to blow up since you will dereference it. It seems like the correct thing to do here (what the code author meant to do) was to set *code_ptr = SS_ET_NO_INFO_DIR if info_dir was NULL or if *info_dir was an empty string (aka *info_dir == '\0'). Coverity ID: 8: Forward Null Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>