Skip to content

Commit

Permalink
Use braces instead of indentation. C is not Python (#1745)
Browse files Browse the repository at this point in the history
Co-authored-by: pancake <pancake@nopcode.org>
  • Loading branch information
trufae and radare committed May 11, 2021
1 parent 702dbe7 commit f278de3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,12 @@ cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
return CS_ERR_OK;

case CS_OPT_SKIPDATA_SETUP:
if (value)
if (value) {
handle->skipdata_setup = *((cs_opt_skipdata *)value);
if (handle->skipdata_setup.mnemonic == NULL)
if (handle->skipdata_setup.mnemonic == NULL) {
handle->skipdata_setup.mnemonic = SKIPDATA_MNEM;
}
}
return CS_ERR_OK;

case CS_OPT_MNEMONIC:
Expand Down

0 comments on commit f278de3

Please sign in to comment.