mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
Handle null string pointers.
This commit is contained in:
parent
e10d561459
commit
352be1f8bd
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ quote_string (const char *str)
|
|||
static dstring_t *q;
|
||||
char c[2] = {0, 0};
|
||||
|
||||
if (!str)
|
||||
return "(null)";
|
||||
if (!q)
|
||||
q = dstring_new ();
|
||||
dstring_clearstr (q);
|
||||
|
|
Loading…
Reference in a new issue