summaryrefslogtreecommitdiffstats
path: root/x11/libSM/files/patch-sm_genid.c
blob: 24c383ca8f007e9db6a9579f63e8bb9da77d43b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/sm_genid.c.orig 2010-06-04 20:15:04.000000000 +0200
+++ src/sm_genid.c  2011-08-06 20:15:47.000000000 +0200
@@ -111,11 +111,13 @@ SmsGenerateClientID(SmsConn smsConn)
 {
 #if defined(HAVE_UUID_CREATE)
     char *id;
-    char **temp;
+    char *temp;
     uuid_t uuid;
     uint32_t status;
 
     uuid_create(&uuid, &status);
+    if (status != uuid_s_ok)
+        return NULL;
 
     uuid_to_string(&uuid, &temp, &status);