mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
fix unlikely failure condition
This commit is contained in:
parent
1b9b3456ad
commit
2e6ce02462
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user