|
Line 0
Link Here
|
|
|
1 |
--- src/util.c.orig 2011-12-20 14:11:03.000000000 +0100 |
| 2 |
+++ src/util.c 2015-03-08 22:30:38.673935000 +0100 |
| 3 |
@@ -213,9 +213,6 @@ |
| 4 |
FILE *file; |
| 5 |
int ret = 0; |
| 6 |
|
| 7 |
- if (path == NULL || line == NULL) |
| 8 |
- return(0); |
| 9 |
- |
| 10 |
if ((file = fopen(path, "r")) == NULL) |
| 11 |
return(0); |
| 12 |
|
| 13 |
@@ -232,9 +229,6 @@ |
| 14 |
int write_line(const char *path, char *line, uint16_t len) { |
| 15 |
int fd, ret; |
| 16 |
|
| 17 |
- if (path == NULL || line == NULL) |
| 18 |
- return(0); |
| 19 |
- |
| 20 |
if ((fd = open(path, O_WRONLY|O_TRUNC)) == -1) |
| 21 |
return(0); |
| 22 |
|