mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
systemcmds: reflect: write return needs to be used for werror checks
This commit is contained in:
parent
05badb5d76
commit
0c5b25efc5
@ -121,7 +121,9 @@ reflect_main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (n > 0) {
|
||||
write(1, buf, n);
|
||||
if (write(1, buf, n) < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
total += n;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user