From de0b902ffaf04d60ef90727d807c9d06a5561d8e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 29 Jul 2012 18:46:40 +1000 Subject: s4-repl: Use NULL for pointer test when checking for ldb_msg_new() failure --- source4/dsdb/repl/replicated_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 67999df573..2c40159677 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -654,7 +654,7 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb, dsdb_make_schema_global(ldb, cur_schema); } msg = ldb_msg_new(ldb); - if (msg == 0) { + if (msg == NULL) { return WERR_NOMEM; } msg->dn = NULL; -- cgit