From b089e9998450457d272b9a93f37a47f75879fc54 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Tue, 29 May 2012 09:40:35 +0000 Subject: fix a w32 bug git-svn-id: svn://tug.org/texlive/trunk@26712 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 4 ++++ Build/source/texk/kpathsea/win32lib.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'Build/source') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 1fb829f5d34..e7c21fc460c 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,7 @@ +2012-05-29 Akira Kakuto + + * win32lib.c: rewrite win32_system. + 2012-05-22 Karl Berry * mktexmf: test $name for csso12*, not $rootname. 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"); -- cgit v1.2.3