]> git.wh0rd.org - fontconfig.git/blobdiff - fc-match/fc-match.c
[fc-lang] Support excluding characters
[fontconfig.git] / fc-match / fc-match.c
index 6f3d2dc81dc4303d152990816d7110314aa34d0c..8963e7af35fc9dedbec9435a0cb58add949897b5 100644 (file)
@@ -13,9 +13,9 @@
  * representations about the suitability of this software for any purpose.  It
  * is provided "as is" without express or implied warranty.
  *
- * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
@@ -214,7 +214,11 @@ main (int argc, char **argv)
                FcChar8 *s;
 
                s = FcPatternFormat (font, format);
-               free (s);
+               if (s)
+               {
+                   printf ("%s", s);
+                   free (s);
+               }
            }
            else if (os)
            {