Skip to content
Snippets Groups Projects
Commit fe5eb08d authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfix

Rev: src/main.c:1.39
parent 2a32690f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: main.c,v 1.38 1998/01/27 18:06:43 hubbe Exp $"); RCSID("$Id: main.c,v 1.39 1998/02/01 05:46:03 hubbe Exp $");
#include "fdlib.h" #include "fdlib.h"
#include "backend.h" #include "backend.h"
#include "module.h" #include "module.h"
...@@ -260,23 +260,6 @@ int dbm_main(int argc, char **argv) ...@@ -260,23 +260,6 @@ int dbm_main(int argc, char **argv)
call_callback(& post_master_callbacks, 0); call_callback(& post_master_callbacks, 0);
free_callback(& post_master_callbacks); free_callback(& post_master_callbacks);
a=allocate_array_no_init(argc,0);
for(num=0;num<argc;num++)
{
ITEM(a)[num].u.string=make_shared_string(argv[num]);
ITEM(a)[num].type=T_STRING;
}
push_array(a);
for(num=0;environ[num];num++);
a=allocate_array_no_init(num,0);
for(num=0;environ[num];num++)
{
ITEM(a)[num].u.string=make_shared_string(environ[num]);
ITEM(a)[num].type=T_STRING;
}
push_array(a);
if(SETJMP(back)) if(SETJMP(back))
{ {
if(throw_severity == THROW_EXIT) if(throw_severity == THROW_EXIT)
...@@ -293,7 +276,24 @@ int dbm_main(int argc, char **argv) ...@@ -293,7 +276,24 @@ int dbm_main(int argc, char **argv)
} }
}else{ }else{
back.severity=THROW_EXIT; back.severity=THROW_EXIT;
a=allocate_array_no_init(argc,0);
for(num=0;num<argc;num++)
{
ITEM(a)[num].u.string=make_shared_string(argv[num]);
ITEM(a)[num].type=T_STRING;
}
push_array(a);
for(num=0;environ[num];num++);
a=allocate_array_no_init(num,0);
for(num=0;environ[num];num++)
{
ITEM(a)[num].u.string=make_shared_string(environ[num]);
ITEM(a)[num].type=T_STRING;
}
push_array(a);
apply(master(),"_main",2); apply(master(),"_main",2);
pop_stack(); pop_stack();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment