fix unlikely failure condition

This commit is contained in:
Anthony Minessale 2011-09-08 16:44:57 -05:00
parent 1b9b3456ad
commit 2e6ce02462
1 changed files with 3 additions and 1 deletions

View File

@ -654,8 +654,10 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
}
if (write(fd, &out, bytes) != bytes) {
rval = -1;
} else
break;
} else {
bytes = 0;
}
}