summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/toolbar.c1
-rw-r--r--gtk/viewdata.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/gtk/toolbar.c b/gtk/toolbar.c
index 2345f565f..d37d98985 100644
--- a/gtk/toolbar.c
+++ b/gtk/toolbar.c
@@ -17,6 +17,7 @@
*/
#include <string.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "desktop/browser.h"
diff --git a/gtk/viewdata.c b/gtk/viewdata.c
index 7cd640fa2..bb8f86f9c 100644
--- a/gtk/viewdata.c
+++ b/gtk/viewdata.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "utils/log.h"
@@ -826,7 +827,7 @@ editor_init_fname(const char *title,
int veci;
/* desktop file of default app for mimetype */
char *def_app_desktop = NULL;
- char *exec_cmd;
+ char *exec_cmd = NULL;
char **argv;
/* build string vector of search path */