From 956cfcaec993111426d91bcd61676b5fe0ebfd16 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 24 Feb 2014 21:02:53 +0000
Subject: [PATCH] Feature extraction using Imagenet
---
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