diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-27 21:56:43 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-27 21:56:43 +0200 |
| commit | c538eb1b90629b5daa6a95687c6c86ef00069457 (patch) | |
| tree | 1ae84b5149b2bef409d5747e0eeb1e04b5c7037a /src/unit | |
| parent | d28a7485213698f1ec220d4b9d290dc6c9b9a0a7 (diff) | |
| download | jancity-c538eb1b90629b5daa6a95687c6c86ef00069457.tar.gz | |
Deprecate memset(3) for zero-init
Diffstat (limited to 'src/unit')
| -rw-r--r-- | src/unit/src/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit/src/unit.c b/src/unit/src/unit.c index 8d208a1..f25d406 100644 --- a/src/unit/src/unit.c +++ b/src/unit/src/unit.c @@ -133,7 +133,7 @@ static void unit_stop(struct unit *const u) static void target_reset(struct unit *const u) { - memset(&u->target, 0, sizeof u->target); + u->target = (const struct unit_target){0}; u->state = UNIT_STATE_IDLE_MOVING; unit_stop(u); } |
