aboutsummaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-05 20:24:22 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-05 20:25:36 +0200
commit212d3022e7dc9117351c09d9154d2360fe1eb91f (patch)
tree17f422a29370fbdf4bda833e2accb33d74830fc4 /lib/src
parent00daf470d17d232fa0271e6f6cf6cf60568826ab (diff)
Fix: sometimes, char is unsigned by defaultv0.1
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/rdline.c3
1 files changed, 1 insertions, 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;