diff --git a/src/mysql.c b/src/mysql.c
index 323154f842b9be82d6b49342e81cd7346d4375bd..57ad23978de761297e235d3d87c28824a16b5b13 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
int temp;
errno = 0;
- temp = strtol (value, $endptr, 0);
+ temp = strtol (value, &endptr, 0);
if ((errno != 0) || (value == endptr))
{
ERROR ("mysql plugin: Invalid \"Port\" argument: %s",
}
port = temp;
+ return (0);
}
else
return (-1);