ovs-vsctl: Clarify that uuid_from_string() shouldn't fail in post_create().
[sliver-openvswitch.git] / utilities / ovs-vsctl.c
index 3a14f71..4435f41 100644 (file)
@@ -3127,7 +3127,9 @@ post_create(struct vsctl_context *ctx)
     const struct uuid *real;
     struct uuid dummy;
 
-    uuid_from_string(&dummy, ds_cstr(&ctx->output));
+    if (!uuid_from_string(&dummy, ds_cstr(&ctx->output))) {
+        NOT_REACHED();
+    }
     real = ovsdb_idl_txn_get_insert_uuid(ctx->txn, &dummy);
     if (real) {
         ds_clear(&ctx->output);