distroquery: fix a segfault when QUERY_STRING is null
This commit is contained in:
parent
62dd291349
commit
4a04c87fdf
@ -201,7 +201,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
data = getenv("QUERY_STRING");
|
||||
if (strlen(data)) {
|
||||
if (data && strlen(data)) {
|
||||
print_xml_reply(data);
|
||||
printf("</distroquery>\n");
|
||||
exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user