2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

db-ctl-base: Use boolean variable values.

Traditionally, for boolean variables we use boolean values.
Lets keep to that tradition.
Hopefully, using false with a bool works with gcc 6.3.1;
I use both recent versions of gcc (7.3) and older
versions (4.x), but did not see the issue found in
165c1f0649 commit.

Cc: Ian Stokes<ian.stokes@intel.com>
Fixes: 165c1f0649 ("db-ctl-base: Fix compilation warnings.")
Signed-off-by: Darrell Ball <dlu998@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Darrell Ball
2018-07-05 13:38:47 -07:00
committed by Ben Pfaff
parent b21ac618e0
commit 5c0dc2fa79

View File

@@ -920,7 +920,7 @@ cmd_get(struct ctl_context *ctx)
if (id) {
struct ovsdb_symbol *symbol = NULL;
bool new = NULL;
bool new = false;
ctx->error = create_symbol(ctx->symtab, id, &symbol, &new);
if (ctx->error) {