diff options
-rw-r--r-- | libdrm/xf86drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index e1280921..a5bb8050 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -1460,7 +1460,7 @@ static void drmSIGIOHandler(int interrupt, void *closure) #if 0 fprintf(stderr, "Trying %d\n", entry->fd); #endif - if ((count = read(entry->fd, buf, sizeof(buf)))) { + if ((count = read(entry->fd, buf, sizeof(buf))) > 0) { buf[count] = '\0'; #if 0 fprintf(stderr, "Got %s\n", buf); |