summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/win32lib.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-05-29 09:40:35 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-05-29 09:40:35 +0000
commitb089e9998450457d272b9a93f37a47f75879fc54 (patch)
tree6598b557e46be9c4b4383b622c0412d8e6264e4b /Build/source/texk/kpathsea/win32lib.c
parent2380399231783ee57198e971d07c7172d914dbe2 (diff)
fix a w32 bug
git-svn-id: svn://tug.org/texlive/trunk@26712 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.c')
-rw-r--r--Build/source/texk/kpathsea/win32lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c
index 47753c3a456..77dde008303 100644
--- a/Build/source/texk/kpathsea/win32lib.c
+++ b/Build/source/texk/kpathsea/win32lib.c
@@ -1100,6 +1100,9 @@ int __cdecl win32_system(const char *cmd)
int len, ret;
int spacep = 0;
+ if(cmd == NULL)
+ return 1;
+
av[0] = xstrdup("cmd.exe");
av[1] = xstrdup("/c");