summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-02-10 14:24:19 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-02-11 09:17:55 -0500
commit01bc248f42f1a056091aa3dd99ba9615ba61df6f (patch)
tree8728765b91b656f5152ba39a596d92788dcdf204 /src/db
parent79a04cb672dd9c37f7d6d4370abea8aac52abf89 (diff)
downloadsssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.tar.gz
sssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.tar.bz2
sssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.zip
Clear up -Wunused-but-set-variable warnings
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index b7624af7..1409149c 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -388,6 +388,9 @@ int sysdb_attrs_steal_string(struct sysdb_attrs *attrs,
int ret;
ret = sysdb_attrs_get_el(attrs, name, &el);
+ if (ret != EOK) {
+ return ret;
+ }
vals = talloc_realloc(attrs->a, el->values,
struct ldb_val, el->num_values+1);