diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2019-07-12 13:08:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-12 13:08:46 +0200 |
commit | 3f1c84751a7e665c8831475cd23be1e93285d032 (patch) | |
tree | 6a70000f5e9b7e05d45f9a28f2e64a7bd64eb443 /src/networking.c | |
parent | 6100a82a3ab03f6e822844392eb0dfcabcd01b42 (diff) | |
parent | 593f6656c1c6ce71eccd71496bb0e62c5f0741b7 (diff) | |
download | redis-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.c | 2 |
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 { |