summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fdb14b7)
Paths can in principle be longer then PATH_MAX, so
simply allocate the buffer with malloc().
CID #
1237773
static int process_item(Item *i) {
int r, q, p;
static int process_item(Item *i) {
int r, q, p;
+ _cleanup_free_ char *prefix = NULL;
+ prefix = malloc(strlen(i->path) + 1);
+ if (!prefix)
+ return log_oom();
+
PATH_FOREACH_PREFIX(prefix, i->path) {
Item *j;
PATH_FOREACH_PREFIX(prefix, i->path) {
Item *j;