mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 19:24:14 +00:00
fix unlikely failure condition
This commit is contained in:
1 parent
1b9b3456ad
commit
2e6ce02462
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user