]> git.wh0rd.org - fontconfig.git/blobdiff - fc-list/fc-list.c
[fc-lang] Support excluding characters
[fontconfig.git] / fc-list / fc-list.c
index 470b4b9323156b7d92fa5ac822d481179077f07b..e7813a6b4ca914d6680dea3955fd50cc64253e97 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
@@ -178,8 +178,11 @@ main (int argc, char **argv)
                FcChar8 *s;
 
                s = FcPatternFormat (fs->fonts[j], format);
-               printf ("%s", s);
-               free (s);
+               if (s)
+               {
+                   printf ("%s", s);
+                   free (s);
+               }
            }
            else
            {