Command line: Improve code style in function
This commit is contained in:
parent
a4f9be1ef4
commit
0123385b40
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user