diff options
author | Erik Hovland <erik@hovland.org> | 2008-09-30 14:05:32 -0700 |
---|---|---|
committer | Dan Dennedy <dan@dennedy.org> | 2008-10-28 22:52:39 -0700 |
commit | 1e532a7f9f51fc08c5048852b31046e449002345 (patch) | |
tree | 7271fa35353d092737bd8bed57f9bd7dceade314 | |
parent | 63b9d388208deef37cd80f5263e7316e8cbf1cb2 (diff) | |
download | libraw1394-1e532a7f9f51fc08c5048852b31046e449002345.tar.gz |
Makes sure to check any return values
The return value of any function should be checked if that function
uses the return value to provide some sort of status information.
Signed-off-by: Erik Hovland <erik@hovland.org>
Signed-off-by: Dan Dennedy <dan@dennedy.org>
-rw-r--r-- | tools/testlibraw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testlibraw.c b/tools/testlibraw.c index efd87ad..1064a38 100644 --- a/tools/testlibraw.c +++ b/tools/testlibraw.c @@ -180,7 +180,8 @@ int main(int argc, char **argv) perror("failed"); continue; } - raw1394_loop_iterate(handle); + if (raw1394_loop_iterate(handle)) + perror("failed"); } printf("\nusing standard tag handler and synchronous calls\n"); |