summaryrefslogtreecommitdiff
path: root/geyes/themes.c
diff options
context:
space:
mode:
Diffstat (limited to 'geyes/themes.c')
-rw-r--r--geyes/themes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/geyes/themes.c b/geyes/themes.c
index 01924ea8..687c4694 100644
--- a/geyes/themes.c
+++ b/geyes/themes.c
@@ -56,7 +56,10 @@ parse_theme_file (EyesApplet *eyes_applet, FILE *theme_file)
{
gchar line_buf [512]; /* prolly overkill */
gchar *token;
- fgets (line_buf, 512, theme_file);
+
+ if (fgets (line_buf, 512, theme_file) == NULL)
+ printf("fgets error\n");
+
while (!feof (theme_file)) {
token = strtok (line_buf, "=");
if (strncmp (token, "wall-thickness",
@@ -92,7 +95,8 @@ parse_theme_file (EyesApplet *eyes_applet, FILE *theme_file)
eyes_applet->theme_dir,
token);
}
- fgets (line_buf, 512, theme_file);
+ if (fgets (line_buf, 512, theme_file) == NULL)
+ printf("fgets error\n");
}
}