diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index f556612..c7922cf 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2771,7 +2771,7 @@ subset_compare (const char *string_to_compare, const char *template_string) { int match; - if (template_string != (char *) NULL && string_to_compare != (char *) NULL + if (template_string != NULL && string_to_compare != NULL && strlen (string_to_compare) <= strlen (template_string)) match = (startswith (template_string, string_to_compare)); |