summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-14 19:12:11 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-14 19:12:11 +0200
commit6d20b64ac4425b3aa73c1d21423bcdc9c5c65409 (patch)
tree34367964cf454a419202e34af49ad640ba38ec4c /src/file_txt.c
parent4e9dbc1c0263269cd99573a4b2e0bc8a48ecb714 (diff)
Replace some fake "while" by "if" in src/file_psb.c and src/file_psd.c
Remove useless variable assignation in src/file_txt.c
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index a65842f..71f99af 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -1155,7 +1155,7 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
const char *ext=NULL;
/* ind=~0: random
* ind=~1: constant */
- double ind=1;
+ double ind;
unsigned int nbrf=0;
unsigned int is_csv=1;
char *str;
@@ -1240,7 +1240,7 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
ext="java";
#endif
}
- else if((str=strstr(buffer_lower, "\nimport ("))!=NULL)
+ else if(strstr(buffer_lower, "\nimport (")!=NULL)
{
ext="go";
}