Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/utils/avs_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ void avs_consume_quotable_token(const char **src,

if (dest_size == 0) {
dest = NULL;
} else if (!dest) {
dest_size = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having null dest pointer with non-zero dest_size looks more like a programming error. It should fire an assertion or error log message

}
for (char value; (value = **src); ++*src) {
if (value == '"') {
Expand Down