summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-12 17:54:45 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-12 17:54:45 -0500
commit06ef971be505678ee462ae1844204ed24f14aedc (patch)
tree767cf32a2e1555962d80e38c5b5256e00e7f941d
parent97f466394eb8fe0f874e9f734ee7ef178e229575 (diff)
downloade2fsprogs-06ef971be505678ee462ae1844204ed24f14aedc.tar.gz
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 <solar@openwall.com> for reporting this problem to me. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--lib/ss/invocation.c1
1 files changed, 1 insertions, 0 deletions
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;