]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a missing cast in g_object_set.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 13:36:12 +0000 (14:36 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 14:11:04 +0000 (15:11 +0100)
When NULL appears in variadic argument lists, it should be cast to the
pointer type that the function will be expecting, because otherwise it
might end up as a type not even the same size as a pointer.

unix/gtkdlg.c

index 4f2016fbbd2477ce1388d1a66a3369cd4adcde6e..6c608ab7a34fb4cf76f9b61c57094ba5ddc425b9 100644 (file)
@@ -2435,7 +2435,7 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs,
                             g_object_set(G_OBJECT(cellrend),
                                          "ellipsize", PANGO_ELLIPSIZE_END,
                                          "ellipsize-set", TRUE,
-                                         NULL);
+                                         (const char *)NULL);
                         }
                        column = gtk_tree_view_column_new_with_attributes
                            ("heading", cellrend, "text", i+1, (char *)NULL);