Selaa lähdekoodia

Merge branch 'master' into v2.1

Mike Pall 9 kuukautta sitten
vanhempi
commit
f73e649a95
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/lj_bcread.c

+ 1 - 1
src/lj_bcread.c

@@ -408,7 +408,7 @@ static int bcread_header(LexState *ls)
 #endif
 #endif
   }
   }
   if ((flags & BCDUMP_F_STRIP)) {
   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 {
   } else {
     MSize len = bcread_uleb128(ls);
     MSize len = bcread_uleb128(ls);
     bcread_need(ls, len);
     bcread_need(ls, len);