projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* fixed madvise/fadvise detection
[rrdtool.git]
/
src
/
rrd_create.c
diff --git
a/src/rrd_create.c
b/src/rrd_create.c
index
f636961
..
f948f3a
100644
(file)
--- a/
src/rrd_create.c
+++ b/
src/rrd_create.c
@@
-663,7
+663,7
@@
int rrd_create_fn(
rrd_t rrd_dn;
if ((rrd_file =
rrd_t rrd_dn;
if ((rrd_file =
- open(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0666))
== NULL
) {
+ open(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0666))
< 0
) {
rrd_set_error("creating '%s': %s", file_name, rrd_strerror(errno));
rrd_free(rrd);
return (-1);
rrd_set_error("creating '%s': %s", file_name, rrd_strerror(errno));
rrd_free(rrd);
return (-1);