summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-12-18 23:26:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-12-18 23:26:56 (GMT)
commitcf9ea46a796000f0252bb7d80c0ac0fb170e156a (patch)
tree4fdab700f2d0fe0e88cf21063e9da516a4f5d5b0 /src/format
parentf4dbbab3190d13e61f125eea51a0ecec2ab9e897 (diff)
Fixed a bug when the binary loading fails.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@306 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r--src/format/format.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/format/format.c b/src/format/format.c
index f1ea4d4..c7d95c4 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -510,10 +510,6 @@ GBinFormat *load_new_format(FormatType type, char *filename, bin_t **content, of
result = NULL;
- printf("analysing... %s\n", filename);
-
-
-
tmp = strdup(filename);
pglist = get_all_plugins_for_action(PGA_FORMAT_MATCHER, &pgcount);
@@ -545,9 +541,6 @@ GBinFormat *load_new_format(FormatType type, char *filename, bin_t **content, of
if (tmp == NULL)
free(tmp);
-
-
-
for (i = 0; i < FID_COUNT && result == NULL; i++)
if (_formats[i].type == type && _formats[i].match(type, *content, *length))
{
@@ -557,12 +550,6 @@ GBinFormat *load_new_format(FormatType type, char *filename, bin_t **content, of
}
-
-
- printf("FINAL FORMAT :: %p\n", result);
-
- //exit(0);
-
return result;
}