mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
Ignore invalid queries
This commit is contained in:
parent
cb5f0283d6
commit
559a45503f
@ -89,12 +89,13 @@ char *query_build_sql(char *query) {
|
||||
int size=sizeof(sql);
|
||||
|
||||
pquery=query_build(query);
|
||||
if(!query_build_clause(pquery,&sqlptr,&size)) {
|
||||
if(pquery) {
|
||||
if(!query_build_clause(pquery,&sqlptr,&size)) {
|
||||
query_free(pquery);
|
||||
return strdup(sql);
|
||||
}
|
||||
query_free(pquery);
|
||||
return strdup(sql);
|
||||
}
|
||||
|
||||
query_free(pquery);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user