diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-05-11 15:03:42 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-05-12 12:54:26 +0200 |
commit | c2e3176eaff7c219d63f328570a79f6e5b6f4aec (patch) | |
tree | 9b1561c997313cc55fbc7c41f0fb26e737eefd5d /src/tools | |
parent | dd3a000e6c6160ff6c10fdac9e04549eed3fa2de (diff) | |
download | sssd-c2e3176eaff7c219d63f328570a79f6e5b6f4aec.tar.gz sssd-c2e3176eaff7c219d63f328570a79f6e5b6f4aec.tar.xz sssd-c2e3176eaff7c219d63f328570a79f6e5b6f4aec.zip |
TOOLS: Fix warning maybe-uninitialized
src/tools/files.c: In function ‘copy_file_contents’:
src/tools/files.c:413:12: error: ‘ret’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
return ret;
^~~
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/files.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/files.c b/src/tools/files.c index 012205f9e..5364f5c0d 100644 --- a/src/tools/files.c +++ b/src/tools/files.c @@ -381,6 +381,7 @@ copy_file_contents(int ifd, } if (written != cnt) { + ret = EINVAL; DEBUG(SSSDBG_CRIT_FAILURE, "Wrote %zd bytes, expected %zd\n", written, cnt); goto done; |