- fixed a nullptr-dereference on iob_clone

This commit is contained in:
Pascal Speck 2017-03-01 12:13:06 +01:00
parent 2e074ca4f9
commit 40433bd7f7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ int iob_clone(FAR struct iob_s *iob1, FAR struct iob_s *iob2, bool throttled)
iob1 = iob1->io_flink;
}
while (iob1->io_len <= 0);
while (iob1 && iob1->io_len <= 0);
/* Reset the offset to the beginning of the I/O buffer */