src/background.c: added some forgotten va_end() calls

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-02-16 17:08:44 +02:00
parent c58365fa64
commit 0f93e313df

View File

@ -527,6 +527,7 @@ parent_call (void *routine, struct FileOpContext *ctx, int argc, ...)
if (ctx)
ret = read (from_parent_fd, ctx, sizeof (FileOpContext));
va_end (ap);
return i;
}
@ -550,8 +551,13 @@ parent_call_string (void *routine, int argc, ...)
value = va_arg (ap, void *);
if ((write (parent_fd, &len, sizeof (int)) != sizeof (int)) ||
(write (parent_fd, value, len) != len))
{
va_end (ap);
return NULL;
}
}
va_end (ap);
if (read (from_parent_fd, &i, sizeof (int)) != sizeof (int))
return NULL;
if (!i)