Skip to content

Commit 9ea5b47

Browse files
author
Felipe Zimmerle
committed
Fix missing initialization on rules-check utility
1 parent 6d61bd6 commit 9ea5b47

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ AC_CONFIG_FILES([\
309309
Makefile \
310310
doc/Makefile \
311311
src/Makefile \
312-
others/Makefile
312+
others/Makefile \
313+
tools/Makefile \
314+
tools/rules-check/Makefile
313315
])
314316

315317
AM_COND_IF([TEST_UTILITIES],
@@ -321,8 +323,6 @@ AM_COND_IF([EXAMPLES],
321323
examples/simple_example_using_c/Makefile \
322324
examples/multiprocess_c/Makefile \
323325
examples/reading_logs_with_offset/Makefile \
324-
tools/Makefile \
325-
tools/rules-check/Makefile \
326326
])])
327327

328328
AM_COND_IF([AFL_FUZZER],

tools/Makefile.am

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
ACLOCAL_AMFLAGS = -I build
3+
4+
5+
SUBDIRS = \
6+
rules-check
7+
8+
# make clean
9+
CLEANFILES =
10+
11+
# make maintainer-clean
12+
MAINTAINERCLEANFILES = \
13+
Makefile.in
14+

tools/rules-check/rules-check.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int main(int argc, char **argv) {
4646

4747
while (*args != NULL) {
4848
struct stat buffer;
49-
std::string argFull;
49+
std::string argFull("");
5050
const char *arg = *args;
5151
std::string err;
5252
int r;

0 commit comments

Comments
 (0)