projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix issues detected by static analysis tool
[platform/upstream/libxkbcommon.git]
/
test
/
common.c
diff --git
a/test/common.c
b/test/common.c
index
cb911e8
..
0bed3de
100644
(file)
--- a/
test/common.c
+++ b/
test/common.c
@@
-260,7
+260,7
@@
test_read_file(const char *path_rel)
remaining = info.st_size;
tmp = ret;
- while ((count = read(fd, tmp, remaining))) {
+ while ((count = read(fd, tmp, remaining))
> 0
) {
remaining -= count;
tmp += count;
}