diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2009-07-19 07:59:56 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2009-07-19 07:59:56 +0000 |
commit | a226a222a00cdb4e676fd242cb849c94f718c4a0 (patch) | |
tree | 66441cc17824352cd3575f6a27ddbbbc8a539269 /Build | |
parent | d957caf9076aa43734b45e89352c8f9622d0a06a (diff) |
hotfix for a potential crash if the lua options struct was not
set up properly.
git-svn-id: svn://tug.org/texlive/trunk@14318 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index 1990d4d5c43..c3874ccc5f1 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,7 @@ +2009-07-20 Taco Hoekwater <taco@elvenkind.com> + + * mp.w: hotfix for a possible crash in lib mode + 2009-07-13 Taco Hoekwater <taco@elvenkind.com> * Released version of MPLib 1.205 diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w index fbfa0b027f1..81ddedfdb49 100644 --- a/Build/source/texk/web2c/mplibdir/mp.w +++ b/Build/source/texk/web2c/mplibdir/mp.w @@ -1,4 +1,4 @@ - $Id: mp.w 1102 2009-07-13 08:43:17Z taco $ + $Id: mp.w 1105 2009-07-18 09:15:07Z taco $ % % Copyright 2008-2009 Taco Hoekwater. % @@ -16478,7 +16478,7 @@ except of course for a short time just after |job_name| has become nonzero. @<Allocate or ...@>= mp->job_name=mp_xstrdup(mp, opt->job_name); -{ +if (mp->job_name != NULL) { char *s = mp->job_name+strlen(mp->job_name); while (s>mp->job_name) { if (*s == '.') { |