mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Fix crash when text empty
Exporting to divelogs.de triggered this bug when divesite name is empty. Fixes #656 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
6573132307
commit
04785f3c8b
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ void put_quoted(struct membuffer *b, const char *text, int is_attribute, int is_
|
||||||
{
|
{
|
||||||
const char *p = text;
|
const char *p = text;
|
||||||
|
|
||||||
for (;;) {
|
for (;text;) {
|
||||||
const char *escape;
|
const char *escape;
|
||||||
|
|
||||||
switch (*p++) {
|
switch (*p++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue