summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index c49e36f2b8..6be7fd7b46 100644
--- a/eval.c
+++ b/eval.c
@@ -6982,7 +6982,7 @@ rb_feature_p(feature, ext, rb)
else {
char *buf;
- if (ext) return 0;
+ if (ext && *ext) return 0;
buf = ALLOCA_N(char, len + DLEXT_MAXLEN + 1);
strcpy(buf, feature);
for (i = 0; (e = loadable_ext[i]) != 0; i++) {