(background_attention): fix usage of uninitialized variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-04-20 17:21:02 +04:00
parent 91105137f7
commit 1e17ba4cf7

View File

@ -198,7 +198,7 @@ background_attention (int fd, void *closure)
void *pointer;
} routine;
/* void *routine; */
int argc, i, result, status;
int argc, i, status;
char *data[MAXCALLARGS];
ssize_t bytes, ret;
struct TaskList *p;
@ -289,6 +289,8 @@ background_attention (int fd, void *closure)
/* Handle the call */
if (type == Return_Integer)
{
int result = 0;
if (!have_ctx)
switch (argc)
{