Skip to content

Commit

Permalink
Fix some problems found by scanning tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ryncsn committed May 19, 2020
1 parent 82cd06f commit f711a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dracutlibdir ?= ${prefix}/lib/dracut

CC = gcc
CFLAGS := -Os -g -std=c11 $(CFLAGS)
LDFLAGS = -lncurses
LDFLAGS := -lncurses $(LDFLAGS)

include src/Makefile

Expand Down
2 changes: 1 addition & 1 deletion src/backend/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int perf_handling_clean() {
}

int perf_handling_start() {
int err;
int err = 0;
for (int i = 0; i < perf_event_ring_num; i++) {
err = perf_ring_start_sampling(perf_event_rings + i);
if (err) {
Expand Down

0 comments on commit f711a92

Please sign in to comment.