[grilo/0.1.x] Ensure grl_metadata_list_key_new() is called with a sentinel



commit df502ee82e66e0f730ec3b43e55c64fb30d8b7d7
Author: Guillaume Emont <guijemont igalia com>
Date:   Fri Nov 25 13:22:15 2011 +0100

    Ensure grl_metadata_list_key_new() is called with a sentinel
    
    This change triggers a compilation warning (with gcc) if the sentinel is
    forgotten.

 src/grl-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-util.h b/src/grl-util.h
index 2d27ba3..7f3f26e 100644
--- a/src/grl-util.h
+++ b/src/grl-util.h
@@ -38,7 +38,7 @@ void grl_paging_translate (guint skip,
                            guint *page_number,
                            guint *internal_offset);
 
-GList *grl_list_from_va (gpointer p, ...);
+GList *grl_list_from_va (gpointer p, ...) G_GNUC_NULL_TERMINATED;
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]