mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Avoid using uninitalized values.
This commit is contained in:
parent
9fd1e2f5da
commit
6e45d68399
3 changed files with 4 additions and 4 deletions
|
|
@ -163,7 +163,7 @@ static int module_load_name(const char *path, const char *rootmodule,
|
|||
GModule *gmodule;
|
||||
MODULE_REC *module;
|
||||
MODULE_FILE_REC *rec;
|
||||
gpointer value1, value2;
|
||||
gpointer value1, value2 = NULL;
|
||||
char *initfunc, *deinitfunc;
|
||||
int found;
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ int settings_get_bool(const char *key)
|
|||
int settings_get_time(const char *key)
|
||||
{
|
||||
const char *str;
|
||||
int msecs;
|
||||
int msecs = 0;
|
||||
|
||||
str = settings_get_str_type(key, SETTING_TYPE_TIME);
|
||||
if (str != NULL && !parse_time_interval(str, &msecs))
|
||||
|
|
@ -140,7 +140,7 @@ int settings_get_level(const char *key)
|
|||
int settings_get_size(const char *key)
|
||||
{
|
||||
const char *str;
|
||||
int bytes;
|
||||
int bytes = 0;
|
||||
|
||||
str = settings_get_str_type(key, SETTING_TYPE_SIZE);
|
||||
if (str != NULL && !parse_size(str, &bytes))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue