diff --git a/ChangeLog b/ChangeLog index 1cdf730d..95ed526e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * src/document.c: Update dox for document_compare_by_display_name() with warning about parameter addresses. + * src/document.h: + Use brackets for DOC_FILENAME() macro 'doc' argument. 2011-04-12 Enrico Tröger diff --git a/src/document.h b/src/document.h index 8009db38..4779e20b 100644 --- a/src/document.h +++ b/src/document.h @@ -149,7 +149,7 @@ extern GPtrArray *documents_array; * This macro never returns @c NULL. **/ #define DOC_FILENAME(doc) \ - (G_LIKELY(doc->file_name != NULL) ? (doc->file_name) : GEANY_STRING_UNTITLED) + (G_LIKELY((doc)->file_name != NULL) ? ((doc)->file_name) : GEANY_STRING_UNTITLED)