]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/rust-exp.y
Use startswith in gdb subfolder.
[thirdparty/binutils-gdb.git] / gdb / rust-exp.y
index 0400340988757ef24a7102712261420c2536948b..3750af0dc348ec9b3db8d13195cc9634d6cfedd9 100644 (file)
@@ -1986,7 +1986,7 @@ munge_name_and_block (const char **name, const struct block **block)
 {
   /* If it is a global reference, skip the current block in favor of
      the static block.  */
-  if (strncmp (*name, "::", 2) == 0)
+  if (startswith (*name, "::"))
     {
       *name += 2;
       *block = block_static_block (*block);