Skip to content

Conversation

rawalexe
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rawalexe rawalexe merged commit 9a4e08f into aws-greengrass:main Oct 17, 2025
14 checks passed
@rawalexe rawalexe deleted the copy branch October 17, 2025 00:23
GglError ggl_buf_copy(GglBuffer source, GglBuffer *target) {
if (source.len == 0) {
target->len = 0;
GGL_LOGD("Source has zero length buffer");
Copy link
Member

Choose a reason for hiding this comment

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

This should not be a log? Thats a valid case that happens often

GGL_LOGT("Failed to copy buffer due to insufficient space.");
return GGL_ERR_NOMEM;
}
memcpy(target->data, source.data, source.len);
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't set the target len?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants