diff options
| author | bigbear <ns@bigbear.dk> | 2024-02-08 02:57:20 +0100 | 
|---|---|---|
| committer | bigbear <ns@bigbear.dk> | 2024-02-08 19:52:53 +0100 | 
| commit | 08e01f35f747bfe30a40ea99cbcd63ad7fb94e7e (patch) | |
| tree | a727faeb3ffb38d523b0700a63e6e537d295a152 /shell/shell.c | |
| parent | 4c249cfdc742d162fdb384fba61236cada3d9f29 (diff) | |
FIX GCC Warnings
Diffstat (limited to 'shell/shell.c')
| -rw-r--r-- | shell/shell.c | 10 | 
1 files changed, 5 insertions, 5 deletions
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;  | 
