]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-tic4x.c
PR26500, ASAN: tic4x_inst_make tc-tic4x.c:1247
[thirdparty/binutils-gdb.git] / gas / config / tc-tic4x.c
index f1eb5bfb41e15083bb3f3ca07e5b78549feec4d3..1889b471282351008518063e76d33d30cff6b8fb 100644 (file)
@@ -1242,9 +1242,8 @@ tic4x_inst_make (const char *name, unsigned long opcode, const char *args)
   insts[iindex].args = args;
   iindex++;
 
-  do
+  while (*name)
     *names++ = *name++;
-  while (*name);
   *names++ = '\0';
 
   return &insts[iindex - 1];