From 06ef971be505678ee462ae1844204ed24f14aedc Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 12 Nov 2009 17:54:45 -0500 Subject: libss: initialize function pointer for readline_shutdown() Clear the function pointer for readline_shutdown() so that if libss is linking against a readline library which doesn't supply a readline_shutdown() function, ss_delete_invocation() won't seg fault. Thanks to Solar Designer for reporting this problem to me. Signed-off-by: "Theodore Ts'o" --- lib/ss/invocation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ss/invocation.c b/lib/ss/invocation.c index 074706fc..74fcb144 100644 --- a/lib/ss/invocation.c +++ b/lib/ss/invocation.c @@ -71,6 +71,7 @@ int ss_create_invocation(subsystem_name, version_string, info_ptr, *(new_table->rqt_tables+1) = (ss_request_table *) NULL; new_table->readline_handle = 0; + new_table->readline_shutdown = 0; new_table->readline = 0; new_table->add_history = 0; new_table->redisplay = 0; -- cgit v1.2.3