mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:04:37 +08:00
13 lines
273 B
Diff
13 lines
273 B
Diff
This patch adds a check for a null pointer
|
|
--- a/src/header_tag.cpp
|
|
+++ b/src/header_tag.cpp
|
|
@@ -54,7 +54,7 @@
|
|
{
|
|
size_t bytesUsed = ID3_TagHeader::SIZE;
|
|
|
|
- if (_info->is_extended)
|
|
+ if (_info && _info->is_extended)
|
|
{
|
|
bytesUsed += _info->extended_bytes;
|
|
}
|