mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-12 15:33:23 -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);
|
int size=sizeof(sql);
|
||||||
|
|
||||||
pquery=query_build(query);
|
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);
|
query_free(pquery);
|
||||||
return strdup(sql);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query_free(pquery);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user