summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-18 18:47:46 +0900
committerGitHub <[email protected]>2020-11-18 18:47:46 +0900
commita211a326de17d496e7acb844e86bf3459746fdf7 (patch)
treeb83758c4bd9f9590c628c519a016e89f9d104d89 /src/dump.c
parente7d0baaf3b2ba1b4512268a2a3db1c8cd169c260 (diff)
downloadmruby-a211a326de17d496e7acb844e86bf3459746fdf7.tar.gz
mruby-a211a326de17d496e7acb844e86bf3459746fdf7.zip
Revert "Check if irep->reps is NULL in lv_defined_p"
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dump.c b/src/dump.c
index 4bec85006..2bc1b0a53 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -773,10 +773,8 @@ lv_defined_p(const mrb_irep *irep)
if (irep->lv) { return TRUE; }
- if (irep->reps) {
- for (i = 0; i < irep->rlen; ++i) {
- if (lv_defined_p(irep->reps[i])) { return TRUE; }
- }
+ for (i = 0; i < irep->rlen; ++i) {
+ if (lv_defined_p(irep->reps[i])) { return TRUE; }
}
return FALSE;