]> git.proxmox.com Git - mirror_ovs.git/commit
db-ctl-base: Fix compilation warnings.
authorIan Stokes <ian.stokes@intel.com>
Wed, 4 Jul 2018 14:28:33 +0000 (15:28 +0100)
committerBen Pfaff <blp@ovn.org>
Thu, 5 Jul 2018 17:58:57 +0000 (10:58 -0700)
commit165c1f0649aff48de1bff5afa0ba833e0ae5087d
tree1f45218fedc91e8b88ea916dd7ba0052c06ac0e1
parent9b7dde9ae07dfbfddba2528751e00c4e7e66c56a
db-ctl-base: Fix compilation warnings.

This commit fixes uninitialized variable warnings in functions
cmd_create() and cmd_get() when compiling with gcc 6.3.1 and -Werror
by initializing variables 'symbol' and 'new' to NULL.

Cc: Alex Wang <alexw@nicira.com>
Fixes: 07ff77ccb82a ("db-ctl-base: Make common database command code into library.")
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/db-ctl-base.c