mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
systemcmds: reflect: write return needs to be used for werror checks
This commit is contained in:
committed by
Daniel Agar
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;
|
||||
|
||||
Reference in New Issue
Block a user