* Copyright (c) The Exim Maintainers 2015 - 2022
* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 - 2015
* License: GPL
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "exim.h"
int result = 0;
/* must find first free sequential filename */
- for (gstring * g = string_get(64); result != -1; g->ptr = 0)
+ for (gstring * g = string_get(64); result != -1; gstring_reset(g))
{
struct stat mystat;
g = string_fmt_append(g,