summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2019-07-12 13:08:46 +0200
committerGitHub <noreply@github.com>2019-07-12 13:08:46 +0200
commit3f1c84751a7e665c8831475cd23be1e93285d032 (patch)
tree6a70000f5e9b7e05d45f9a28f2e64a7bd64eb443 /src/networking.c
parent6100a82a3ab03f6e822844392eb0dfcabcd01b42 (diff)
parent593f6656c1c6ce71eccd71496bb0e62c5f0741b7 (diff)
downloadredis-3f1c84751a7e665c8831475cd23be1e93285d032.tar.gz
Merge pull request #6196 from AngusP/resp3
[RESP3, Minor] in networking.c double representation for -infiinity leaves out comma
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 1a8e3530a..7976caf29 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -507,7 +507,7 @@ void addReplyDouble(client *c, double d) {
if (c->resp == 2) {
addReplyBulkCString(c, d > 0 ? "inf" : "-inf");
} else {
- addReplyProto(c, d > 0 ? ",inf\r\n" : "-inf\r\n",
+ addReplyProto(c, d > 0 ? ",inf\r\n" : ",-inf\r\n",
d > 0 ? 6 : 7);
}
} else {