diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-30 10:10:37 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-30 10:10:37 +0200 |
commit | b3923b65f1f013d92d63d7906d942e1216739b90 (patch) | |
tree | 9e09b3c06e4399a76bb8b323ce37366acd0eb9a5 /src/core/wee-secure.c | |
parent | 53fa3f770e9763bb6b847b7ebf69ebca08de98d4 (diff) | |
download | weechat-b3923b65f1f013d92d63d7906d942e1216739b90.zip |
core: use variable "items_count" directly from hashtable without calling function hashtable_get_integer
Diffstat (limited to 'src/core/wee-secure.c')
-rw-r--r-- | src/core/wee-secure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-secure.c b/src/core/wee-secure.c index 94d46aeb8..677439ae3 100644 --- a/src/core/wee-secure.c +++ b/src/core/wee-secure.c @@ -751,7 +751,7 @@ secure_data_write_cb (void *data, struct t_config_file *config_file, if (!config_file_write_line (config_file, section_name, NULL)) return WEECHAT_CONFIG_WRITE_ERROR; - if (hashtable_get_integer (secure_hashtable_data, "items_count") > 0) + if (secure_hashtable_data->items_count > 0) { /* * write a special line indicating if a passphrase must be used to @@ -1040,7 +1040,7 @@ secure_buffer_display () } /* display secured data */ - if (hashtable_get_integer (secure_hashtable_data, "items_count") > 0) + if (secure_hashtable_data->items_count > 0) { gui_chat_printf_y (secure_buffer, 4, _("Secured data:")); line = 6; |