Change the semantics of 'FontSpec' so that it's a dynamically
[u/mdw/putty] / unix / uxplink.c
index aeb37f6..fc8100c 100644 (file)
@@ -125,11 +125,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)