From bc902b277e9131cc169751056786de5393da737d Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 24 Feb 2014 20:21:31 +0000
Subject: [PATCH] Imagenet Features\!
---
src/data.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/data.c b/src/data.c
index 85c3794..f44f5da 100644
--- a/src/data.c
+++ b/src/data.c
@@ -10,6 +10,7 @@
{
char *path;
FILE *file = fopen(filename, "r");
+ if(!file) file_error(filename);
list *lines = make_list();
while((path=fgetl(file))){
list_insert(lines, path);
--
Gitblit v1.10.0