2006-11-13 [wwp] 2.6.0cvs39
[claws.git] / src / quote_fmt_parse.y
index d2107a4..265aac6 100644 (file)
@@ -116,6 +116,9 @@ static void clear_buffer(void)
 {
        if (current->buffer)
                *current->buffer = '\0';
 {
        if (current->buffer)
                *current->buffer = '\0';
+       else
+               /* force to an empty string, as buffer should not be left unallocated */
+               add_buffer("");
        current->bufsize = 0;
 }
 
        current->bufsize = 0;
 }