projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138c0aa
)
ring: fix is_empty
author
Ran Benita
<ran234@gmail.com>
Sat, 4 Feb 2012 13:19:33 +0000
(15:19 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Sat, 4 Feb 2012 15:30:24 +0000
(16:30 +0100)
Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/misc.c
patch
|
blob
|
history
diff --git
a/src/misc.c
b/src/misc.c
index
8089822
..
2dc2136
100644
(file)
--- a/
src/misc.c
+++ b/
src/misc.c
@@
-83,9
+83,9
@@
void kmscon_ring_free(struct kmscon_ring *ring)
bool kmscon_ring_is_empty(struct kmscon_ring *ring)
{
if (!ring)
- return
fals
e;
+ return
tru
e;
- return ring->first;
+ return ring->first
== NULL
;
}
int kmscon_ring_write(struct kmscon_ring *ring, const char *val, size_t len)