summaryrefslogtreecommitdiff
path: root/pine-segfix.patch
blob: f65aa60294325e06ff81a942cdc3aced4900813f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -urN pine4.31.orig/pine/osdep/lstcmpnt pine4.31/pine/osdep/lstcmpnt
--- pine4.31.orig/pine/osdep/lstcmpnt	Mon Oct 30 17:45:08 2000
+++ pine4.31/pine/osdep/lstcmpnt	Tue Dec 12 06:33:53 2000
@@ -9,10 +9,10 @@
 last_cmpnt(filename)
     char *filename;
 {
-    register char *p = NULL, *q = filename;
+    char *p = NULL, *q = filename;
 
-    if(!q)
-      return(q);
+    if(filename == 0)
+      return 0;
 
     while(q = strchr(q, '/'))
       if(*++q)