Fix missing initialization on rules-check utility

This commit is contained in:
Felipe Zimmerle 2017-02-25 14:33:32 -03:00
parent 6d61bd6b57
commit 9ea5b475b2
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
3 changed files with 18 additions and 4 deletions

View File

@ -309,7 +309,9 @@ AC_CONFIG_FILES([\
Makefile \ Makefile \
doc/Makefile \ doc/Makefile \
src/Makefile \ src/Makefile \
others/Makefile others/Makefile \
tools/Makefile \
tools/rules-check/Makefile
]) ])
AM_COND_IF([TEST_UTILITIES], AM_COND_IF([TEST_UTILITIES],
@ -321,8 +323,6 @@ AM_COND_IF([EXAMPLES],
examples/simple_example_using_c/Makefile \ examples/simple_example_using_c/Makefile \
examples/multiprocess_c/Makefile \ examples/multiprocess_c/Makefile \
examples/reading_logs_with_offset/Makefile \ examples/reading_logs_with_offset/Makefile \
tools/Makefile \
tools/rules-check/Makefile \
])]) ])])
AM_COND_IF([AFL_FUZZER], AM_COND_IF([AFL_FUZZER],

14
tools/Makefile.am Normal file
View File

@ -0,0 +1,14 @@
ACLOCAL_AMFLAGS = -I build
SUBDIRS = \
rules-check
# make clean
CLEANFILES =
# make maintainer-clean
MAINTAINERCLEANFILES = \
Makefile.in

View File

@ -46,7 +46,7 @@ int main(int argc, char **argv) {
while (*args != NULL) { while (*args != NULL) {
struct stat buffer; struct stat buffer;
std::string argFull; std::string argFull("");
const char *arg = *args; const char *arg = *args;
std::string err; std::string err;
int r; int r;