no need to alloc filename
authordiscomfitor <discomfitor>
Fri, 2 Dec 2011 14:35:36 +0000 (14:35 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 2 Dec 2011 14:35:36 +0000 (14:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@65818 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_lib.c

index 82d85ab..81c2f36 100644 (file)
@@ -1586,7 +1586,7 @@ open_error:
    file_len = strlen(file) + 1;
 
    /* Allocate struct for eet file and have it zero'd out */
-   ef = malloc(sizeof(Eet_File) + file_len);
+   ef = malloc(sizeof(Eet_File));
    if (!ef)
      goto on_error;