Loading src/api.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -501,9 +501,8 @@ public: } } // Prefer an in-place edit; if not available, recreate while preserving UUID clt.remove(_Backend, clientid); clt.create(_Backend, &cdat); // Use in-place edit to avoid dangling pointers from remove+create clt.edit(_Backend, cdat); json_object* respid = json_object_new_object(); json_object_object_add(respid, "editclient", Loading Loading
src/api.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -501,9 +501,8 @@ public: } } // Prefer an in-place edit; if not available, recreate while preserving UUID clt.remove(_Backend, clientid); clt.create(_Backend, &cdat); // Use in-place edit to avoid dangling pointers from remove+create clt.edit(_Backend, cdat); json_object* respid = json_object_new_object(); json_object_object_add(respid, "editclient", Loading