summaryrefslogtreecommitdiff
path: root/sysutils/wmmon/files/patch-ab
blob: ca5cd9ee390df23fade929923cf70eb2691b0967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
*** ../../wmmon.app/wmgeneral/list.c.orig	Tue May 19 17:13:23 1998
--- ../../wmmon.app/wmgeneral/list.c	Mon May 24 21:26:26 1999
***************
*** 44,51 ****
    LinkedList* cell;
  
    cell = (LinkedList*)malloc(sizeof(LinkedList));
!   cell->head = head;
!   cell->tail = tail;
    return cell;
  }
  
--- 44,54 ----
    LinkedList* cell;
  
    cell = (LinkedList*)malloc(sizeof(LinkedList));
!   if (cell)
!     {
!       cell->head = head;
!       cell->tail = tail;
!     }
    return cell;
  }
  
***************
*** 84,89 ****
--- 87,93 ----
  INLINE void
  list_remove_head(LinkedList** list)
  {
+   if (!list) return;
    if (!*list) return;  
    if ((*list)->tail)
      {