aboutsummaryrefslogtreecommitdiff
path: root/shared/common/binport.c
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2003-08-14 14:26:06 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2003-08-14 14:26:06 +0000
commit053845e60bc1f6143e7c50aa10069a18405c2161 (patch)
treea0269d1cf9c82c0551694e4d37e49cebd32881bd /shared/common/binport.c
parentc2a6b33ed5c7686421c66fa90fe18e1d7a14b7ec (diff)
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=845
Diffstat (limited to 'shared/common/binport.c')
-rw-r--r--shared/common/binport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/common/binport.c b/shared/common/binport.c
index 05cc5df..c886955 100644
--- a/shared/common/binport.c
+++ b/shared/common/binport.c
@@ -452,7 +452,8 @@ int binport_read(t_binbuf *bb, char *filename, char *dirname)
{
t_atom at;
while (binport_nextatom(bp, &at))
- binbuf_add(bb, 1, &at);
+ if (at.a_type != A_NULL)
+ binbuf_add(bb, 1, &at);
binport_free(bp);
return (BINPORT_OK);
}
@@ -534,7 +535,7 @@ int main(int ac, char **av)
fputs(";\n", stdout);
ac = 0;
}
- else
+ else if (at.a_type != A_NULL)
{
if (ac++) fputc(' ', stdout);
binport_atomstring(&at, buf, BINPORT_MAXSTRING);