File: 11-remove-gpc-exit.patch

package info (click to toggle)
agg 1%3A2.7.0.r145%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,300 kB
  • sloc: cpp: 70,849; ansic: 13,038; makefile: 3,690; sh: 26
file content (15 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Remove a call to exit(). These are unwanted to so files
Author: John Horigan <john@glyphic.com>
Forwarded: not-needed

--- a/gpc/gpc.c
+++ b/gpc/gpc.c
@@ -110,7 +110,7 @@
 #define MALLOC(p, b, s, t) {if ((b) > 0) { \
                             p= (t*)malloc(b); if (!(p)) { \
                             fprintf(stderr, "gpc malloc failure: %s\n", s); \
-                            exit(0);}} else p= NULL;}
+                            }} else p= NULL;}
 
 #define FREE(p)            {if (p) {free(p); (p)= NULL;}}