From 08e01f35f747bfe30a40ea99cbcd63ad7fb94e7e Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:57:20 +0100 Subject: FIX GCC Warnings --- shell/shell.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shell/shell.c') diff --git a/shell/shell.c b/shell/shell.c index 166e7232..81f3e084 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -2369,19 +2369,19 @@ void key_get_components(const gchar *key, gchar *f = g_strdup(key); gchar *s = g_utf8_strchr(f+1, -1, '$'); if(s==NULL) { - DEBUG("key_get_components_ERROR NOT FOUND"); + DEBUG("ERROR NOT FOUND"); }else{ - if((s-f+1)>strlen(key)) { - DEBUG("key_get_components_ERROR NOT FOUND"); - }else{ + /* if((s-f+1)>strlen(key)) { + DEBUG("ERROR TOO LATE"); + }else{*/ *(g_utf8_strchr(f+1, -1, '$') + 1) = 0; if (flags) *flags = g_strdup(f); if (tag) *tag = key_mi_tag(f); g_free(f); + //} } - } } else np = key; -- cgit v1.2.3