Browse Source

Merge branch 'master' into v2.1

Mike Pall 9 months ago
parent
commit
f73e649a95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_bcread.c

+ 1 - 1
src/lj_bcread.c

@@ -408,7 +408,7 @@ static int bcread_header(LexState *ls)
 #endif
   }
   if ((flags & BCDUMP_F_STRIP)) {
-    ls->chunkname = lj_str_newz(ls->L, ls->chunkarg);
+    ls->chunkname = lj_str_newz(ls->L, *ls->chunkarg == BCDUMP_HEAD1 ? "=?" : ls->chunkarg);
   } else {
     MSize len = bcread_uleb128(ls);
     bcread_need(ls, len);