summaryrefslogtreecommitdiffhomepage
path: root/svr-algo.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
commita9c38fb37f5fc8796435c2bcbcdecf35cf802ca6 (patch)
treea0342c77df2912832910cc72c9fcef0a2f597461 /svr-algo.c
parentf6fce0981d1a351681c58e36d845fa1fa366b398 (diff)
snapshot of stuff
--HG-- extra : convert_revision : 2903853ba24669d01547710986ad531357602633
Diffstat (limited to 'svr-algo.c')
-rw-r--r--svr-algo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-algo.c b/svr-algo.c
index 33b9471..dc6565a 100644
--- a/svr-algo.c
+++ b/svr-algo.c
@@ -16,6 +16,8 @@ algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[],
unsigned int count, i, j;
algo_type * ret = NULL;
+ *goodguess = 0;
+
/* get the comma-separated list from the buffer ie "algo1,algo2,algo3" */
algolist = buf_getstring(buf, &len);
/* Debug this */
@@ -57,8 +59,6 @@ algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[],
/* set if it was a good guess */
if (i == 0 && j == 0) {
*goodguess = 1;
- } else {
- *goodguess = 0;
}
/* set the algo to return */
ret = &localalgos[j];