Fix: cppcheck linter cleanups
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index 1a53448c647ebd8469871b916258726649a78c5b..b6c18e142ca6c3e7434e616db17f3499df636d45 100644 (file)
@@ -255,7 +255,7 @@ int loglevel_str_to_value(const char *inputstr)
        int i = 0;
        char str[LTTNG_SYMBOL_NAME_LEN];
 
-       while (inputstr[i] != '\0' && i < LTTNG_SYMBOL_NAME_LEN) {
+       while (i < LTTNG_SYMBOL_NAME_LEN && inputstr[i] != '\0') {
                str[i] = toupper(inputstr[i]);
                i++;
        }
This page took 0.025727 seconds and 4 git commands to generate.