diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-07-08 15:27:23 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-12 11:57:57 +0200 |
commit | 64d664c201916d8678b5f4bd7e1559c7ece9217d (patch) | |
tree | 7f9c16ec1bd2ebd8467dfeecb545b5d8e7857cc4 /src/python | |
parent | f3db22862d22821be2d566435cb0c59387343fc2 (diff) | |
download | sssd-64d664c201916d8678b5f4bd7e1559c7ece9217d.tar.gz sssd-64d664c201916d8678b5f4bd7e1559c7ece9217d.tar.xz sssd-64d664c201916d8678b5f4bd7e1559c7ece9217d.zip |
sssctl: Fix warning maybe-uninitialized
It looks like some special gcc optimalisation and special case
may cause to have unitialized output argument _dom when return
code is EOK
src/tools/sssctl/sssctl_cache.c: In function ‘sssctl_print_object’:
src/tools/sssctl/sssctl_cache.c:491:8: error: ‘dom’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
if (dom == NULL) {
^
src/tools/sssctl/sssctl_cache.c:447:15: error: ‘entry’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
*_entry = talloc_steal(mem_ctx, entry);
^~~~~~~~~~~~
src/tools/sssctl/sssctl_cache.c:412:25: note: ‘entry’ was declared here
struct sysdb_attrs *entry;
^~~~~
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions