mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-14 12:25:51 +08:00
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>
This commit is contained in:
parent
97f466394e
commit
06ef971be5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user