summaryrefslogtreecommitdiffabout
path: root/libid3tag
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-28 21:46:48 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-10-28 21:46:48 (GMT)
commit4c887e9cafbb5db0253e5f4807e41b94dab8cdf3 (patch) (side-by-side diff)
tree095560d3275a9ae33337502b4508dd5e3cf4c90c /libid3tag
parent33a2cf4856cd8fc0e22e478ff616cced574ba9e7 (diff)
downloadidest-4c887e9cafbb5db0253e5f4807e41b94dab8cdf3.tar.gz
idest-4c887e9cafbb5db0253e5f4807e41b94dab8cdf3.tar.bz2
Bugfix.
* libid3tag/file.c (v2_write): Return immediately if file->ntags is 0.
Diffstat (limited to 'libid3tag') (more/less context) (ignore whitespace changes)
-rw-r--r--libid3tag/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libid3tag/file.c b/libid3tag/file.c
index 9210571..dcd5a7c 100644
--- a/libid3tag/file.c
+++ b/libid3tag/file.c
@@ -679,6 +679,8 @@ int v2_write(struct id3_file *file,
{
int rc;
+ if (file->ntags == 0)
+ return 0;
if (data &&
((file->ntags == 1 && !(file->flags & ID3_FILE_FLAG_ID3V1)) ||
(file->ntags == 2 && (file->flags & ID3_FILE_FLAG_ID3V1))) &&

Return to:

Send suggestions and report system problems to the System administrator.