only write 0 or 1 to the header though for the compression flag
authortsauerbeck <tsauerbeck>
Thu, 26 May 2005 10:03:03 +0000 (10:03 +0000)
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 May 2005 10:03:03 +0000 (10:03 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@14949 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_lib.c

index e06721e..807e212 100644 (file)
@@ -904,7 +904,7 @@ eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
             if (eet_string_match(efn->name, name))
               {
                  free(efn->data);
-                 efn->compression = compress;
+                 efn->compression = !!compress;
                  efn->size = data_size;
                  efn->data_size = size;
                  efn->data = data2;