projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random: Get random seed from /dev/urandom.
[openvswitch]
/
lib
/
json.c
diff --git
a/lib/json.c
b/lib/json.c
index 10fa3c121011a88876a5b43097b70de89a608572..d26c89ed1c4535183ccf50ce12d328bf4716d29e 100644
(file)
--- a/
lib/json.c
+++ b/
lib/json.c
@@
-277,7
+277,7
@@
json_real_create(double real)
void
json_object_put(struct json *json, const char *name, struct json *value)
{
void
json_object_put(struct json *json, const char *name, struct json *value)
{
-
shash_add(json->u.object, name, value
);
+
json_destroy(shash_replace(json->u.object, name, value)
);
}
void
}
void