summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctrl/libhicnctrl/src/objects/face.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/objects/face.c b/ctrl/libhicnctrl/src/objects/face.c
index b0dbcd7a5..5dbe1c8dc 100644
--- a/ctrl/libhicnctrl/src/objects/face.c
+++ b/ctrl/libhicnctrl/src/objects/face.c
@@ -141,10 +141,13 @@ int _hc_face_snprintf(char *s, size_t size, const hc_object_t *object) {
}
int hc_face_create(hc_sock_t *s, hc_face_t *face) {
+ int rc;
hc_object_t object;
memset(&object, 0, sizeof(hc_object_t));
object.face = *face;
- return hc_execute(s, ACTION_CREATE, OBJECT_TYPE_FACE, &object, NULL);
+ rc = hc_execute(s, ACTION_CREATE, OBJECT_TYPE_FACE, &object, NULL);
+ face->id = object.face.id;
+ return rc;
}
int hc_face_get(hc_sock_t *s, hc_face_t *face, hc_data_t **pdata) {