diff mcabber/src/utils.c @ 1222:75aee46d3aee

Fix a problem with the ssl_ca{file,path} variables expansion
author Mikael Berthe <mikael@lilotux.net>
date Thu, 17 May 2007 10:44:01 +0200
parents 2de8f8ba1f34
children 3a4018f18bdf
line wrap: on
line diff
--- a/mcabber/src/utils.c	Thu May 10 13:22:31 2007 +0200
+++ b/mcabber/src/utils.c	Thu May 17 10:44:01 2007 +0200
@@ -50,6 +50,8 @@
 // The caller must free the string after use.
 char *expand_filename(const char *fname)
 {
+  if (!fname)
+    return NULL;
   if (!strncmp(fname, "~/", 2)) {
     char *homedir = getenv("HOME");
     if (homedir)