projects
/
cascardo
/
movie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad1a4a
)
If dots file cannot be found, exit
author
Thadeu Lima de Souza Cascardo
<cascardo@holoscopio.com>
Sat, 16 Aug 2008 22:55:04 +0000
(19:55 -0300)
committer
Thadeu Lima de Souza Cascardo
<cascardo@holoscopio.com>
Sat, 16 Aug 2008 22:55:04 +0000
(19:55 -0300)
movie.c
patch
|
blob
|
history
diff --git
a/movie.c
b/movie.c
index
08531fe
..
ec850ad
100644
(file)
--- a/
movie.c
+++ b/
movie.c
@@
-79,6
+79,11
@@
ReadPoints (char *filename)
Point last;
Point rect;
file = fopen (filename, "r");
+ if (file == NULL)
+ {
+ fprintf (stderr, "Could not open file %s\n", filename);
+ exit (1);
+ }
points = g_array_new (FALSE, TRUE, sizeof (Point));
buffer = NULL;
len = 0;