2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

ovsdb: Add default case to ovsdb_mutation_set_execute().

The value of 'error' is indeterminate if m->mutator is not set to a valid
value here, so we should add a default case to handle the exception.  It
shouldn't happen, of course.

Found by Clang (http://clang-analyzer.llvm.org/).
This commit is contained in:
Ben Pfaff
2010-02-10 10:51:11 -08:00
parent b62aeed2ab
commit 8b71367c38

View File

@@ -379,6 +379,9 @@ ovsdb_mutation_set_execute(struct ovsdb_row *row,
ovsdb_datum_subtract(dst, dst_type, arg, arg_type);
error = ovsdb_mutation_check_count(dst, dst_type);
break;
default:
NOT_REACHED();
}
if (error) {
return error;