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:
beveloper 2002-10-08 00:36:42 +00:00
parent d9b7ae2154
commit b0304d13cc

View File

@ -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);