diff options
Diffstat (limited to 'template/ruby-runner.c.in')
-rw-r--r-- | template/ruby-runner.c.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template/ruby-runner.c.in b/template/ruby-runner.c.in index c72a56bbbf..2b285bf540 100644 --- a/template/ruby-runner.c.in +++ b/template/ruby-runner.c.in @@ -14,6 +14,9 @@ main(int argc, char **argv) static const char builddir[] = BUILDDIR; const char *libpath = getenv(LIBPATHENV); if (libpath) { + while (*libpath == PATH_SEP) ++libpath; + } + if (libpath && *libpath) { size_t n = strlen(libpath); char *e = malloc(sizeof(builddir)+n+1); memcpy(e, builddir, sizeof(builddir)-1); |