diff --git a/src/defaults.c b/src/defaults.c index d7fbb605..ba789d34 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -977,7 +977,7 @@ static Bool fixupCachedPixmapsPaths(WMPropList *dict) { WMPropList *allApps, *app, *props, *iconkey, *icon, *newicon; - char *path, *fixedpath, *ptr, *search, *replace; + char *path, *fixedpath, *ptr, *search; int i, len, slen; Bool changed = False; diff --git a/src/main.c b/src/main.c index b61ad70e..6441c8d7 100644 --- a/src/main.c +++ b/src/main.c @@ -501,7 +501,7 @@ check_defaults() static void inotifyWatchConfig() { - char *watchPath; + char *watchPath = NULL; inotifyFD = inotify_init(); /* Initialise an inotify instance */ if (inotifyFD < 0) { wwarning(_("could not initialise an inotify instance." diff --git a/src/startup.c b/src/startup.c index af0c8e30..9f75b4ab 100644 --- a/src/startup.c +++ b/src/startup.c @@ -34,6 +34,7 @@ #endif #include +#include #include #include #include