diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2020-05-05 21:42:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 21:42:29 +0200 |
| commit | d973526821e6af5380d41ef7b2ff09f976b70fbc (patch) | |
| tree | 715866f1327931811b19eae8ba71e307a5987820 /lib/hook.h | |
| parent | 44fb33ee585e865345e765143fdada2123875eae (diff) | |
| parent | e01a788c44cb99a259cda99ae147a93e6ec8e93d (diff) | |
Merge pull request #6349 from qlyoung/hook-cpp-compat
Diffstat (limited to 'lib/hook.h')
| -rw-r--r-- | lib/hook.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hook.h b/lib/hook.h index 3823cebe6a..bef5351e90 100644 --- a/lib/hook.h +++ b/lib/hook.h @@ -145,7 +145,7 @@ extern void _hook_register(struct hook *hook, struct hookent *stackent, */ #define _hook_reg_svar(hook, funcptr, arg, has_arg, module, funcname, prio) \ do { \ - static struct hookent stack_hookent = { .ent_on_heap = 0, }; \ + static struct hookent stack_hookent = {}; \ _hook_register(hook, &stack_hookent, funcptr, arg, has_arg, \ module, funcname, prio); \ } while (0) |
