houndsniff

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6cf37ff8beaa28f98912f3dc840ff3abd3446662
parent 24c67ecddbce630232959e0749f800c937e37390
Author: MichaelDim02 <31562759+MichaelDim02@users.noreply.github.com>
Date:   Sun, 27 Dec 2020 01:48:44 +0000

Update select.c
Diffstat:
Msrc/select.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/select.c b/src/select.c @@ -17,7 +17,6 @@ sel(int length, const char *charset) { sqlite3 *db; char *err_msg = 0; - /*int count = 0;*/ int rc = sqlite3_open("hashes", &db); char sql[1150], len[5], pt2[30], pt3[40]; @@ -44,11 +43,10 @@ callback(void *unused, int argc, char **argv, char **azColName) int i; for (i = 0; i < argc; i++) { - if (counter == 1) { + if (counter == 1) printf("Possible results:\n\n[%d] %s", counter, argv[i] ? argv[i] : "NULL"); - } else { - printf("[%d] %s", counter, argv[i] ? argv[i] : "NULL"); - } + else + printf("[%d] %s", counter, argv[i] ? argv[i] : "NULL"); } printf("\n"); return 0; }