summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/win32lib.c3
2 files changed, 7 insertions, 0 deletions
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 <kakuto@fuk.kindai.ac.jp>
+
+ * win32lib.c: rewrite win32_system.
+
2012-05-22 Karl Berry <karl@tug.org>
* 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");