From 212d3022e7dc9117351c09d9154d2360fe1eb91f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Apr 2018 20:24:22 +0200 Subject: [PATCH] Fix: sometimes, char is unsigned by default Signed-off-by: David Oberhollenzer --- lib/src/rdline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/rdline.c b/lib/src/rdline.c index b108ef2..18c9c85 100644 --- a/lib/src/rdline.c +++ b/lib/src/rdline.c @@ -120,8 +120,7 @@ static int rdline_append(rdline_t *t, int c) char *rdline(int fd, int argc, const char *const *argv) { rdline_t rd; - int ret; - char c; + int c, ret; memset(&rd, 0, sizeof(rd)); rd.fd = fd;