prevent accessing an uninitialized pointer, by making it NULL
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1450 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-2
@@ -32,8 +32,7 @@ int main(int argc, char **argv)
|
||||
system_info sysinfo;
|
||||
char *string_to_match; // match this in team name
|
||||
|
||||
if (argc == 2)
|
||||
string_to_match = argv[1];
|
||||
string_to_match = (argc == 2) ? argv[1] : NULL;
|
||||
puts("");
|
||||
puts(PS_HEADER);
|
||||
puts(PS_SEP);
|
||||
|
||||
Reference in New Issue
Block a user