Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohnnypops <johnnypops>2011-07-02 06:06:39 (GMT)
committer johnnypops <johnnypops>2011-07-02 06:06:39 (GMT)
commitb573162a9bbe07a3c8d807873eac4c1a3eae26f9 (patch)
tree32836adbb51956e66ed91f435146b62717d18502
parent71974df6fcad3a39b0957725de56fbae86c8afe5 (diff)
Disable $HOME error on win32.
-rw-r--r--src/tuxpaint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
index 84ba43e..884315d 100644
--- a/src/tuxpaint.c
+++ b/src/tuxpaint.c
@@ -21253,7 +21253,9 @@ static void tmpcfg_merge(struct cfginfo *loser, const struct cfginfo *winner)
static void setup_config(char *argv[])
{
char str[128];
+#ifndef _WIN32
const char *home = getenv("HOME");
+#endif
struct cfginfo tmpcfg_usr;
struct cfginfo tmpcfg_cmd;
@@ -21267,12 +21269,14 @@ static void setup_config(char *argv[])
/* Set default options: */
+#ifndef _WIN32
if(!home)
{
/* Woah, don't know where $HOME is? */
fprintf(stderr, "Error: You have no $HOME environment variable!\n");
exit(1);
}
+#endif
if(tmpcfg_cmd.savedir)
savedir = strdup(tmpcfg_cmd.savedir);