aboutsummaryrefslogtreecommitdiff
path: root/pd/src/x_connective.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/x_connective.c')
-rw-r--r--pd/src/x_connective.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pd/src/x_connective.c b/pd/src/x_connective.c
index 8687154e..b9093f46 100644
--- a/pd/src/x_connective.c
+++ b/pd/src/x_connective.c
@@ -1245,7 +1245,8 @@ static void makefilename_scanformat(t_makefilename *x)
static void *makefilename_new(t_symbol *s)
{
t_makefilename *x = (t_makefilename *)pd_new(makefilename_class);
- if (!s || !s->s_name) s = gensym("file.%d");
+ if (!s || !*s->s_name)
+ s = gensym("file.%d");
outlet_new(&x->x_obj, &s_symbol);
x->x_format = s;
x->x_accept = A_NULL;