summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 422a778)
raw | patch | inline | side by side (parent: 422a778)
author | Max Kellermann <max@duempel.org> | |
Fri, 8 Nov 2013 18:36:49 +0000 (19:36 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 8 Nov 2013 18:36:49 +0000 (19:36 +0100) |
src/conf.c | patch | blob | history |
diff --git a/src/conf.c b/src/conf.c
index 0166f6fd6b6c18ddf8a82d713412d49612a2e01b..87dd310cb815e0ef8c68ea06f17aa9477f607467 100644 (file)
--- a/src/conf.c
+++ b/src/conf.c
#include "colors.h"
#include "screen_list.h"
+#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
static int
read_rc_file(char *filename)
{
+ assert(filename != NULL);
+
FILE *file;
char line[MAX_LINE_LENGTH];
- if (filename == NULL)
- return -1;
-
file = fopen(filename, "r");
if (file == NULL) {
perror(filename);