support empty includes
authortsauerbeck <tsauerbeck>
Mon, 13 Feb 2006 18:20:26 +0000 (18:20 +0000)
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2006 18:20:26 +0000 (18:20 +0000)
SVN revision: 20438

legacy/edje/src/bin/edje_decc.c

index bd3eb9e46b376501c2508f6d054d215d445a577c..993cb8db686fbea708e7915c34db438ac252f02a 100644 (file)
@@ -221,7 +221,11 @@ output(void)
             printf("ERROR: unable to write file (%s).\n", out);
             exit (-1);
          }
-       fputs(sf->file, f);
+
+       /* if the file is empty, sf->file will be NULL.
+        * note that that's not an error
+        */
+       if (sf->file) fputs(sf->file, f);
        fclose(f);
      }
    if (fontlist)