Fix some indetation issues and add brackets.

modified:   src/nmseffect.c
This commit is contained in:
Brian Barto 2017-04-22 14:46:12 -04:00
parent d87094bde1
commit 733503ce3a

View File

@ -137,15 +137,18 @@ char nmseffect_exec(char *string) {
} }
// Set flag if we have a whitespace character // Set flag if we have a whitespace character
if (strlen(list_pointer->source) == 1 && isspace(list_pointer->source[0])) { if (strlen(list_pointer->source) == 1 && isspace(list_pointer->source[0])) {
// If flag is enabled, mask blank spaces as well
if (maskBlank && (list_pointer->source[0] == ' ')) // If flag is enabled, mask blank spaces as well
list_pointer->is_space = 0; if (maskBlank && (list_pointer->source[0] == ' ')) {
else list_pointer->is_space = 0;
list_pointer->is_space = 1; } else {
} else { list_pointer->is_space = 1;
}
} else {
list_pointer->is_space = 0; list_pointer->is_space = 0;
} }
// Set initial mask chharacter // Set initial mask chharacter
list_pointer->mask = nmscharset_get_random(); list_pointer->mask = nmscharset_get_random();