projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix
[openwrt.git]
/
package
/
openwrt
/
jffs2root.c
diff --git
a/package/openwrt/jffs2root.c
b/package/openwrt/jffs2root.c
index
e74c89a
..
2ff37fd
100644
(file)
--- a/
package/openwrt/jffs2root.c
+++ b/
package/openwrt/jffs2root.c
@@
-48,7
+48,10
@@
void init_crc32()
unsigned long crc;
unsigned long poly = 0xEDB88320L;
int n, bit;
unsigned long crc;
unsigned long poly = 0xEDB88320L;
int n, bit;
- crc32 = (unsigned long *) malloc(256 * sizeof(unsigned long));
+ if ((crc32 = (unsigned long *) malloc(256 * sizeof(unsigned long))) == (void *)-1) {
+ perror("malloc");
+ exit(1);
+ }
for (n = 0; n < 256; n++) {
crc = (unsigned long) n;
for (bit = 0; bit < 8; bit++)
for (n = 0; n < 256; n++) {
crc = (unsigned long) n;
for (bit = 0; bit < 8; bit++)
This page took
0.022796 seconds
and
4
git commands to generate.