projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'mesa_7_7_branch'
[mesa.git]
/
progs
/
demos
/
fire.c
diff --git
a/progs/demos/fire.c
b/progs/demos/fire.c
index 3db45418fadfc559fd5761ea1fd5ab4bd3238307..9c351e80e514dd56620032d9c40eeab1a0405d53 100644
(file)
--- a/
progs/demos/fire.c
+++ b/
progs/demos/fire.c
@@
-6,6
+6,7
@@
* Humanware s.r.l.
*/
+#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@
-758,6
+759,7
@@
main(int ac, char **av)
glFogfv(GL_FOG_COLOR, fogcolor);
glFogf(GL_FOG_DENSITY, 0.1);
+ assert(np > 0);
p = (part *) malloc(sizeof(part) * np);
for (i = 0; i < np; i++)