]> git.pld-linux.org Git - packages/alpine.git/blob - alpine-segfix.patch
- patchlevel 10
[packages/alpine.git] / alpine-segfix.patch
1 --- alpine-0.9999/pith/osdep/lstcmpnt.c~        2007-08-20 21:46:37.000000000 +0200
2 +++ alpine-0.9999/pith/osdep/lstcmpnt.c 2007-11-05 14:37:52.000000000 +0100
3 @@ -44,10 +44,10 @@
4  char *
5  last_cmpnt(char *filename)
6  {
7 -    register char *p = NULL, *q = filename;
8 +    char *p = NULL, *q = filename;
9  
10 -    if(!q)
11 -      return(q);
12 +    if(filename == NULL)
13 +      return NULL;
14  
15      while((q = strchr(q, FILE_SEP)) != NULL)
16        if(*++q)
This page took 0.058265 seconds and 3 git commands to generate.