Error handling

This commit is contained in:
Aram
2016-04-30 22:38:46 +02:00
parent 09614d318f
commit 8a80d7e957

View File

@ -674,7 +674,7 @@ int main (int argc, const char * argv[]) {
space = craptev1_get_space(nonces, 95, uid); space = craptev1_get_space(nonces, 95, uid);
total_states = craptev1_sizeof_space(space); total_states = craptev1_sizeof_space(space);
if(!space || !total_states_tested){ if(!space || !total_states){
fprintf(stderr, "No solution found!\n"); fprintf(stderr, "No solution found!\n");
return 1; return 1;
} }