diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-02 21:48:09 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-02 21:48:09 +0000 |
commit | 0fbda19314c806e3e677847f3c977eb5a1bc2b61 (patch) | |
tree | c858cf146371845ae09eb4e65fb595948e61edc1 /unix.c | |
parent | f774e01cdb34e339455671f51413ecdc6de3208d (diff) |
Added help_free() and cleaned up some very stale help-related stuff I
wasn't even aware of. This closes bug #352.
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -123,11 +123,14 @@ int main( int argc, char *argv[], char **envp ) if( !getuid() || !geteuid() ) log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" ); - if( help_init( &(global.help), global.helpfile ) == NULL ) + if( help_init( &global.help, global.helpfile ) == NULL ) log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); b_main_run(); + /* Mainly good for restarting, to make sure we close the help.txt fd. */ + help_free( &global.help ); + if( global.restart ) { char *fn = ipc_master_save_state(); |