Skip to content

Commit 1c95c07

Browse files
committed
Make vars used only by INFO CLIENTS local to the block.
Related to redis#4727.
1 parent 16b8d36 commit 1c95c07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,6 @@ sds genRedisInfoString(char *section) {
29552955
time_t uptime = server.unixtime-server.stat_starttime;
29562956
int j;
29572957
struct rusage self_ru, c_ru;
2958-
unsigned long lol, bib;
29592958
int allsections = 0, defsections = 0;
29602959
int sections = 0;
29612960

@@ -3034,6 +3033,7 @@ sds genRedisInfoString(char *section) {
30343033

30353034
/* Clients */
30363035
if (allsections || defsections || !strcasecmp(section,"clients")) {
3036+
unsigned long lol, bib;
30373037
getClientsMaxBuffers(&lol,&bib);
30383038
if (sections++) info = sdscat(info,"\r\n");
30393039
info = sdscatprintf(info,

0 commit comments

Comments
 (0)