diff options
Diffstat (limited to 'misc/mc-light/files/patch-src-dlglist.c')
-rw-r--r-- | misc/mc-light/files/patch-src-dlglist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/mc-light/files/patch-src-dlglist.c b/misc/mc-light/files/patch-src-dlglist.c new file mode 100644 index 000000000000..74237ea92baa --- /dev/null +++ b/misc/mc-light/files/patch-src-dlglist.c @@ -0,0 +1,11 @@ +--- src/dlglist.c.orig Tue Aug 24 18:14:12 2004 ++++ src/dlglist.c Wed Jun 29 11:13:07 2005 +@@ -71,7 +71,7 @@ + #define mc_list_previous(list) ((list) ? (((MC_DLG_List *)(list))->prev) : NULL) + #define mc_list_next(list) ((list) ? (((MC_DLG_List *)(list))->next) : NULL) + +-static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list->prev) list=list->prev; return list;} ++static MC_DLG_List* mc_list_first (MC_DLG_List *list){ while(list && list->prev) list=list->prev; return list;} + static MC_DLG_List* mc_list_last (MC_DLG_List *list){ while(list->next) list=list->next; return list;} + + |