mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (rb_f_exec): should check whether prog is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74f50ab688
commit
d84edcfd73
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 1 11:46:19 2004 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* process.c (rb_f_exec): should check whether prog is NULL.
|
||||
|
||||
Mon Nov 1 09:37:19 2004 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rss/maker.rb: added entry point of RSS Maker.
|
||||
|
|
|
@ -1267,7 +1267,7 @@ rb_f_exec(argc, argv)
|
|||
else {
|
||||
e.argc = argc;
|
||||
e.argv = argv;
|
||||
e.prog = RSTRING(prog)->ptr;
|
||||
e.prog = prog ? RSTRING(prog)->ptr : 0;
|
||||
}
|
||||
rb_exec(&e);
|
||||
rb_sys_fail(e.prog);
|
||||
|
|
Loading…
Reference in a new issue