Fix: relayd: cast idigit argument to unsigned char
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 7f7c0369a1bbf935b3ce66b46d36cf94bfeaa9b6..12b7b74f6d8ad7cc5d43799396ee4ba27d456bc2 100644 (file)
@@ -230,7 +230,7 @@ static int set_option(int opt, const char *arg, const char *optname)
 
                        errno = 0;
                        v = strtoul(arg, NULL, 0);
-                       if (errno != 0 || !isdigit(arg[0])) {
+                       if (errno != 0 || !isdigit((unsigned char) arg[0])) {
                                ERR("Wrong value in --fd-pool-size parameter: %s", arg);
                                ret = -1;
                                goto end;
This page took 0.044874 seconds and 4 git commands to generate.