common: cast arguments to character classification functions to unsigned char
[babeltrace.git] / src / plugins / text / dmesg / dmesg.c
index 50ceb7e64454d87833bd46cb8034a0f1eb370e72..199dbf925db862fac3288dcc4e10cb0e8905ce8f 100644 (file)
@@ -773,7 +773,7 @@ bt_message_iterator_class_next_method_status dmesg_msg_iter_next_one(
 
                /* Ignore empty lines, once trimmed */
                for (ch = dmesg_msg_iter->linebuf; *ch != '\0'; ch++) {
-                       if (!isspace(*ch)) {
+                       if (!isspace((unsigned char) *ch)) {
                                only_spaces = false;
                                break;
                        }
This page took 0.024024 seconds and 4 git commands to generate.