summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/gtk/corewindow.c2
-rw-r--r--utils/filepath.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/frontends/gtk/corewindow.c b/frontends/gtk/corewindow.c
index 6ca5d228f..4f05648ba 100644
--- a/frontends/gtk/corewindow.c
+++ b/frontends/gtk/corewindow.c
@@ -304,7 +304,7 @@ nsgtk_cw_motion_notify_event(GtkWidget *widget,
*/
static nserror nsgtk_cw_key(struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey)
{
- double value;
+ double value = 0;
GtkAdjustment *vscroll;
GtkAdjustment *hscroll;
GtkAdjustment *scroll = NULL;
diff --git a/utils/filepath.c b/utils/filepath.c
index 156ba2d75..ee5f107c9 100644
--- a/utils/filepath.c
+++ b/utils/filepath.c
@@ -142,7 +142,11 @@ char *filepath_find(char **respathv, const char *filename)
}
/* exported interface documented in filepath.h */
-char *filepath_sfinddef(char **respathv, char *filepath, const char *filename, const char *def)
+char *
+filepath_sfinddef(char **respathv,
+ char *filepath,
+ const char *filename,
+ const char *def)
{
char t[PATH_MAX];
char *ret;