git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4177 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-12-09 17:22:47 +00:00
parent 32fd7b0a24
commit ab1f67a67b

View File

@@ -140,8 +140,8 @@ get_xsockets (int *unix_socket, int *tcp_socket)
struct in_addr local;
char *dir, *p;
dir = strdup (X_UNIX_PATH);
errx (1, "strdup: out of memory");
if((dir = strdup (X_UNIX_PATH)) == NULL)
errx (1, "strdup: out of memory");
p = strrchr (dir, '/');
if (p)
*p = '\0';