dungeon_crawler
diff prototype/src/datapath.cc @ 16:91180ee7b7d9
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 20 Aug 2012 03:40:51 +0300 |
parents | 252a00508411 |
children | 7f52d6310317 |
line diff
1.1 --- a/prototype/src/datapath.cc Sun Aug 19 23:09:30 2012 +0300 1.2 +++ b/prototype/src/datapath.cc Mon Aug 20 03:40:51 2012 +0300 1.3 @@ -14,6 +14,10 @@ 1.4 { 1.5 static std::string res; 1.6 1.7 + if(!fname) { 1.8 + return 0; 1.9 + } 1.10 + 1.11 for(auto path : pathlist) { 1.12 res = path + "/" + std::string(fname); 1.13 FILE *fp = fopen(res.c_str(), "r");