[PATCH] hotlist.c - fix coredump (trivial)



Hello!

This will prevent MC from dumping core if user pressed Del in Active VFS 
dialog. (Ctrl-X a)

Is there a way to delete selected active vfs? I've read the sources, but 
didn't find an easy way to implement this.

--
	Andrey
--- /home/apx/src/mc/src/hotlist.c	Sun Dec 23 00:00:57 2001
+++ mc/src/hotlist.c	Sat May  4 16:16:11 2002
@@ -998,6 +998,9 @@
 	
 static void remove_from_hotlist (struct hotlist *entry)
 {
+    if (!entry)
+	return;
+
     if (entry->type == HL_TYPE_GROUP) {
 	if (entry->head) {
 	    char *header;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]