summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-17 10:02:13 +0200
committerGünther Deschner <gd@samba.org>2010-09-17 10:02:13 +0200
commit6f5fa763c13f43cc805a9bd939c21970404deaec (patch)
tree587a36c6b5764424ae453fe42deb2448c8134ca2 /source4/torture
parent66ad6c75e9efbd9837c70a716b556520c0279597 (diff)
downloadsamba-6f5fa763c13f43cc805a9bd939c21970404deaec.tar.gz
samba-6f5fa763c13f43cc805a9bd939c21970404deaec.tar.bz2
samba-6f5fa763c13f43cc805a9bd939c21970404deaec.zip
s4-smbtorture: fix winreg querymultiplevalues NDR test warning.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/ndr/winreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/ndr/winreg.c b/source4/torture/ndr/winreg.c
index ca3a71ed7d..b6da7bccd2 100644
--- a/source4/torture/ndr/winreg.c
+++ b/source4/torture/ndr/winreg.c
@@ -247,7 +247,7 @@ static bool querymultiplevalues_in_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuename->length, 18, "name len");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuename->size, 18, "name size");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuelen, 0, "length");
- torture_assert(tctx, (r->in.values_in[0].ve_valueptr == NULL), "ve_valueptr");
+ torture_assert_int_equal(tctx, r->in.values_in[0].ve_valueptr, 0, "ve_valueptr");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_type, 0, "type");
torture_assert_int_equal(tctx, *r->in.buffer_size, 32, "buffer size");
@@ -303,7 +303,7 @@ static bool querymultiplevalues2_in_check(struct torture_context *tctx,
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuename->length, 10, "name len");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuename->size, 10, "name size");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_valuelen, 0, "length");
- torture_assert(tctx, (r->in.values_in[0].ve_valueptr == NULL), "ve_valueptr");
+ torture_assert_int_equal(tctx, r->in.values_in[0].ve_valueptr, 0, "ve_valueptr");
torture_assert_int_equal(tctx, r->in.values_in[0].ve_type, 0, "type");
torture_assert_int_equal(tctx, *r->in.offered, 0, "buffer size");