Add missing declaration to maxadmin

A variable was not declared before it was used.
This commit is contained in:
Markus Makela
2016-10-24 11:17:19 +03:00
parent 7a988df5a0
commit 8e9012f514

View File

@ -345,7 +345,7 @@ main(int argc, char **argv)
#else
while (printf("MaxScale> ") && fgets(buf, 1024, stdin) != NULL)
{
num = strlen(buf);
int num = strlen(buf);
#endif
/* Strip trailing \n\r */
for (int i = num - 1; buf[i] == '\r' || buf[i] == '\n'; i--)