ctx->desc = hash_descriptor;
ctx->ctx = malloc(hash_descriptor->ctxsize_B);
ctx->finctx = malloc(hash_descriptor->ctxsize_B);
- if(ctx->ctx==NULL && ctx->finctx==NULL)
+ if(ctx->ctx == NULL && ctx->finctx == NULL)
return 3;
- if(ctx->finctx==NULL){
+ if(ctx->finctx == NULL){
free(ctx->ctx);
return 2;
}
- if(ctx->ctx==NULL){
+ if(ctx->ctx == NULL){
free(ctx->finctx);
return 1;
}
c = cli_rx();
switch (c){
case CLI_ENTER:
- if((exit_code=search_and_call(cli_buffer, maxcmdlength, cmd_desc))<=0){
+ if((exit_code = search_and_call(cli_buffer, maxcmdlength, cmd_desc))<=0){
free(cli_buffer);
return exit_code;
}