summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hiredis.c8
-rw-r--r--sds.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/hiredis.c b/hiredis.c
index 4b4c11a..0297361 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -620,10 +620,10 @@ void redisFree(redisContext *c) {
}
int redisFreeKeepFd(redisContext *c) {
- int fd = c->fd;
- c->fd = -1;
- redisFree(c);
- return fd;
+ int fd = c->fd;
+ c->fd = -1;
+ redisFree(c);
+ return fd;
}
/* Connect to a Redis instance. On error the field error in the returned
diff --git a/sds.c b/sds.c
index 9d83636..72d623e 100644
--- a/sds.c
+++ b/sds.c
@@ -123,7 +123,7 @@ void sdsclear(sds s) {
/* Enlarge the free space at the end of the sds string so that the caller
* is sure that after calling this function can overwrite up to addlen
* bytes after the end of the string, plus one more byte for nul term.
- *
+ *
* Note: this does not change the *length* of the sds string as returned
* by sdslen(), but only the free buffer space we have. */
sds sdsMakeRoomFor(sds s, size_t addlen) {