Fix non-libedit builds of maxadmin
A variable was not declared if libedit-devel wasn't installed.
This commit is contained in:
parent
0a9662c528
commit
ab9f8ebfac
@ -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--)
|
||||
|
Loading…
x
Reference in New Issue
Block a user