mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
several fixes to make irssi compile without warnings with MIPSpro
also fixed ctcp_queue_clean() - it might have crashed sometimes.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8fb2249f07
commit
8ce36c05ea
30 changed files with 80 additions and 72 deletions
|
|
@ -203,7 +203,8 @@ char *config_node_get_str(CONFIG_NODE *parent, const char *key, const char *def)
|
|||
if (parent == NULL) return (char *) def;
|
||||
|
||||
node = config_node_find(parent, key);
|
||||
return (node == NULL || !has_node_value(node)) ? def : node->value;
|
||||
return (char *) ((node != NULL && has_node_value(node)) ?
|
||||
node->value : def);
|
||||
}
|
||||
|
||||
int config_node_get_int(CONFIG_NODE *parent, const char *key, int def)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue