Skip to content

Commit 8e9012f

Browse files
committed
Add missing declaration to maxadmin
A variable was not declared before it was used.
1 parent 7a988df commit 8e9012f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/maxadmin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ main(int argc, char **argv)
345345
#else
346346
while (printf("MaxScale> ") && fgets(buf, 1024, stdin) != NULL)
347347
{
348-
num = strlen(buf);
348+
int num = strlen(buf);
349349
#endif
350350
/* Strip trailing \n\r */
351351
for (int i = num - 1; buf[i] == '\r' || buf[i] == '\n'; i--)

0 commit comments

Comments
 (0)