Change the semantics of 'FontSpec' so that it's a dynamically
[u/mdw/putty] / unix / uxsftp.c
index 651047e..c19df12 100644 (file)
@@ -53,11 +53,9 @@ int platform_default_i(const char *name, int def)
     return def;
 }
 
-FontSpec platform_default_fontspec(const char *name)
+FontSpec *platform_default_fontspec(const char *name)
 {
-    FontSpec ret;
-    *ret.name = '\0';
-    return ret;
+    return fontspec_new("");
 }
 
 Filename platform_default_filename(const char *name)