summaryrefslogtreecommitdiff
path: root/src/xauthority.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xauthority.c')
-rw-r--r--src/xauthority.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xauthority.c b/src/xauthority.c
index f85a9c43..fc990642 100644
--- a/src/xauthority.c
+++ b/src/xauthority.c
@@ -245,6 +245,9 @@ xauth_write (XAuthority *auth, XAuthWriteMode mode, GFile *file, GError **error)
gboolean result;
gboolean matched = FALSE;
+ g_return_val_if_fail (auth != NULL, FALSE);
+ g_return_val_if_fail (file != NULL, FALSE);
+
/* Read out existing records */
if (mode != XAUTH_WRITE_MODE_SET)
{