({ \
char *_x; \
size_t _l = strlen(name); \
- _x = alloca(sizeof(MATCH_PREFIX)-1+_l+sizeof(MATCH_SUFFIX)); \
+ _x = alloca(strlen(MATCH_PREFIX)+_l+strlen(MATCH_SUFFIX)+1); \
strcpy(stpcpy(stpcpy(_x, MATCH_PREFIX), name), MATCH_SUFFIX); \
_x; \
})
_public_ int sd_bus_track_remove_name(sd_bus_track *track, const char *name) {
const char *match;
- _cleanup_free_ char *n;
+ _cleanup_free_ char *n = NULL;;
assert_return(name, -EINVAL);