diff options
author | fredb <fredb> | 1999-10-14 07:27:13 +0000 |
---|---|---|
committer | fredb <fredb> | 1999-10-14 07:27:13 +0000 |
commit | f63a7e94f865d6f25194c27d8d04eb878887ffb6 (patch) | |
tree | cbd95cf2a096551c8849e652c34f6f4e375ab289 /www/arena | |
parent | 4cf0c8c0a522c7bf24604d8edd8a0fee6ef40c2f (diff) | |
download | pkgsrc-f63a7e94f865d6f25194c27d8d04eb878887ffb6.tar.gz |
Don't free memory that hasn't been allocated.
Diffstat (limited to 'www/arena')
-rw-r--r-- | www/arena/patches/patch-ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/arena/patches/patch-ac b/www/arena/patches/patch-ac new file mode 100644 index 00000000000..f852ea6545f --- /dev/null +++ b/www/arena/patches/patch-ac @@ -0,0 +1,23 @@ +$NetBSD: patch-ac,v 1.3 1999/10/14 07:27:13 fredb Exp $ + +--- Arena/Source/toolbar.c.orig Wed Nov 25 05:26:52 1998 ++++ Arena/Source/toolbar.c Mon Oct 4 01:47:53 1999 +@@ -1010,14 +1010,15 @@ + * and proceed if looks valid + */ + if (Printer != NULL) ++ { + argv = SpawnStringToRagged(Printer, &argc); +- +- if (Printer == NULL || argv == NULL || argc == 0) ++ if (argv == NULL || argc == 0) return; ++ } ++ else + { + Announce(_("No printer specified")); + XUndefineCursor(display, win); + XFlush(display); +- SpawnFreeRagged(&argc, &argv); + SpawnUnBlock(&PrintBlocker); + return; + } |