search for: add_intern

Displaying 2 results from an estimated 2 matches for "add_intern".

2020 Sep 03
0
[PATCH nbdkit] server/public.c: Uninline nbdkit_strdup_intern to avoid compiler warning.
...(str, SIZE_MAX); + char *copy; + + if (str == NULL) { + nbdkit_error ("nbdkit_strdup_intern: no string given"); + errno = EINVAL; + return NULL; + } + + copy = strdup (str); + if (copy == NULL) { + nbdkit_error ("strdup: %m"); + return NULL; + } + + return add_intern (copy); } const char * -- 2.27.0
2020 Sep 03
4
[PATCH nbdkit] server/public.c: Uninline nbdkit_strdup_intern to avoid compiler warning.
I'm not sure if this is a GCC bug or a bug in our code, but the attached workaround fixes it for me. Rich.