* src/gnome/gnucash.c.in

(gnucash_main_helper): switch to gnc_setenv.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5935 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-11-21 02:47:46 +00:00
parent f6730ded3a
commit 2ac6efc19d

View File

@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
#include "core-utils.h"
#include "gnc-engine-util.h"
#include "gnc-engine.h"
#include "gw-gnc.h"
@ -75,17 +76,11 @@ gnucash_main_helper (int argc, char *argv[])
gnc_gw_init ();
if(!bootstrap_scm) {
char *string;
string = g_strdup_printf("%s=%s", "GNC_BOOTSTRAP_SCM", GNC_BOOTSTRAP_SCM);
if (string == NULL) {
FATAL("out of memory");
exit(1);
}
if (putenv(string) != 0) {
FATAL("putenv(%s) failed. Aborting.\n", string);
if(!bootstrap_scm)
{
if(gnc_setenv("GNC_BOOTSTRAP_SCM", GNC_BOOTSTRAP_SCM, 1) != 0)
{
FATAL("gnc_setenv GNC_BOOTSTRAP_SCM failed. Aborting.\n");
exit(1);
}