From 91177a26322deeaa317db06beb9436e0e2ffe86d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 11 Dec 2016 20:37:26 +0100 Subject: [PATCH 1/2] fix for uninitialized variable --- src/ebusd/mainloop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ebusd/mainloop.cpp b/src/ebusd/mainloop.cpp index 49df494e..b91995bb 100644 --- a/src/ebusd/mainloop.cpp +++ b/src/ebusd/mainloop.cpp @@ -59,9 +59,13 @@ MainLoop::MainLoop(const struct options opt, Device *device, MessageMap* message m_device->setListener(this); if (opt.dumpFile[0]) { m_dumpFile = new RotateFile(opt.dumpFile, opt.dumpSize); + } else { + m_dumpFile = NULL; } if (opt.logRawFile[0] && strcmp(opt.logRawFile, opt.logFile)!=0) { m_logRawFile = new RotateFile(opt.logRawFile, opt.logRawSize, true); + } else { + m_logRawFile = NULL; } m_logRawEnabled = opt.logRaw; // create BusHandler From 538af108dbb49bcc6f9b8c4c54cab253c016f697 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 11 Dec 2016 21:14:32 +0100 Subject: [PATCH 2/2] exclude unnecessary files --- make_debian.sh | 2 +- make_freetz.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/make_debian.sh b/make_debian.sh index 1c16331c..d20f158d 100755 --- a/make_debian.sh +++ b/make_debian.sh @@ -27,7 +27,7 @@ PACKAGE="${RELEASE}_${ARCH}.deb" rm -rf "$BUILD" mkdir -p "$BUILD" || exit 1 cd "$BUILD" || exit 1 -(tar cf - -C .. "--exclude=./$BUILD" --exclude=./.* .| tar xf -) || exit 1 +(tar cf - -C .. "--exclude=./$BUILD" --exclude=./.* "--exclude=*.o" "--exclude=*.a" .| tar xf -) || exit 1 echo echo "*************" diff --git a/make_freetz.sh b/make_freetz.sh index a7306e6e..90c51266 100755 --- a/make_freetz.sh +++ b/make_freetz.sh @@ -28,7 +28,7 @@ export PATH=$PATH:/usr/mipsel-linux-uclibc/bin rm -rf "$BUILD" mkdir -p "$BUILD" || exit 1 cd "$BUILD" || exit 1 -(tar cf - -C .. "--exclude=./$BUILD" --exclude=./.* .| tar xf -) || exit 1 +(tar cf - -C .. "--exclude=./$BUILD" --exclude=./.* "--exclude=*.o" "--exclude=*.a" .| tar xf -) || exit 1 echo echo "*************"