1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

window_get_theme() now checks that window isn't NULL, so we don't crash if

something tries to print to screen when there's no windows yet.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2146 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-25 16:31:24 +00:00 committed by cras
parent ba445fe37e
commit 09b5baa3d9

View File

@ -54,7 +54,8 @@ typedef struct {
} TEXT_DEST_REC; } TEXT_DEST_REC;
#define window_get_theme(window) \ #define window_get_theme(window) \
((window)->theme != NULL ? (window)->theme : current_theme) (window != NULL && (window)->theme != NULL ? \
(window)->theme : current_theme)
int format_find_tag(const char *module, const char *tag); int format_find_tag(const char *module, const char *tag);