Skip to content

Commit

Permalink
Merge pull request #3 from slashdevops/first-implementation
Browse files Browse the repository at this point in the history
fix: segmentation fault uninitialized pointer
  • Loading branch information
christiangda authored Mar 31, 2024
2 parents b95a3ad + 6e388ba commit 475bf29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/c-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions tests/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void test_list_destroy_10()
for (int i = 0; i < 10; i++)
{
Node *node = malloc(sizeof(Node));
node->data = NULL;
node->next = NULL;
list_prepend(list, node);
}
Expand Down

0 comments on commit 475bf29

Please sign in to comment.