Command line: Improve code style in function

This commit is contained in:
Mario Hüttel 2019-08-20 18:08:15 +02:00
parent a4f9be1ef4
commit 0123385b40
1 changed files with 2 additions and 3 deletions

View File

@ -41,14 +41,13 @@
static int string_array_count(char **string_array)
{
int count = 0;
int count;
if (!string_array)
return 0;
for (; *string_array; string_array++) {
for (count = 0; *string_array; string_array++)
count++;
}
return count;
}