From: Theodore Ts'o Date: Thu, 12 Nov 2009 22:54:45 +0000 (-0500) Subject: libss: initialize function pointer for readline_shutdown() X-Git-Tag: v1.41.10~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ef971be505678ee462ae1844204ed24f14aedc;p=thirdparty%2Fe2fsprogs.git 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" --- diff --git a/lib/ss/invocation.c b/lib/ss/invocation.c index 074706fca..74fcb1446 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;