[gnome-settings-daemon] wacom: Add guards for internal code



commit 16903aa019e4de4530db351c595cdc728bf15837
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 21 17:31:12 2011 +0000

    wacom: Add guards for internal code

 plugins/wacom/gsd-wacom-device.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index 14243fc..eee309a 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -96,6 +96,9 @@ gsd_wacom_stylus_new (GSettings *settings,
 {
 	GsdWacomStylus *stylus;
 
+	g_return_val_if_fail (G_IS_SETTINGS (settings), NULL);
+	g_return_val_if_fail (name != NULL, NULL);
+
 	stylus = GSD_WACOM_STYLUS (g_object_new (GSD_TYPE_WACOM_STYLUS,
 						 NULL));
 	stylus->priv->name = g_strdup (name);



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