diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-06-23 07:06:46 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-23 12:51:18 +0200 |
commit | 1a11b1a638b95c8516b21d5c6912da526298feb7 (patch) | |
tree | 4f69de4811e316cdaf561eebf050fbc76309b41e /src | |
parent | b80e8b76ad377c24865bb2eb5931893279f1f042 (diff) | |
download | sssd-1a11b1a638b95c8516b21d5c6912da526298feb7.tar.gz sssd-1a11b1a638b95c8516b21d5c6912da526298feb7.tar.xz sssd-1a11b1a638b95c8516b21d5c6912da526298feb7.zip |
SYSDB: Remove useless NULL test.
There is a test for NULL after calling talloc_strndup
and variable version was used a few times in strcmp before debug message.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/db/sysdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index edbd7ad2e..626ec0de4 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -1235,7 +1235,7 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, DEBUG(SSSDBG_FATAL_FAILURE, "Unknown DB version [%s], expected [%s] for domain %s!\n", - version?version:"not found", SYSDB_VERSION, domain->name); + version, SYSDB_VERSION, domain->name); ret = sysdb_version_check(SYSDB_VERSION, version); goto done; } |