Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capacity of slice #2148

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Fix capacity of slice #2148

merged 1 commit into from
Jun 18, 2024

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Jun 18, 2024

Fix nil pointer crash in setInitialClientRoutes.go:34.
In the slice the first element could be nil, because of the incorrect slice initialization.

Describe your changes

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

The append keep the initial len and append to end of the
original slice
@pappz pappz merged commit 919c1cb into main Jun 18, 2024
21 checks passed
@pappz pappz deleted the fix/android-route-nil branch June 18, 2024 13:31
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.

2 participants