Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libext2fs: include config.h for HAVE_xxx defines
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
inode_io.c
diff --git
a/lib/ext2fs/inode_io.c
b/lib/ext2fs/inode_io.c
index
b3e7ce5
..
8e0944e
100644
(file)
--- a/
lib/ext2fs/inode_io.c
+++ b/
lib/ext2fs/inode_io.c
@@
-10,6
+10,7
@@
* %End-Header%
*/
+#include "config.h"
#include <stdio.h>
#include <string.h>
#if HAVE_UNISTD_H
@@
-163,7
+164,7
@@
static errcode_t inode_open(const char *name, int flags, io_channel *channel)
return 0;
cleanup:
- if (io->name)
+ if (io
&& io
->name)
ext2fs_free_mem(&io->name);
if (data)
ext2fs_free_mem(&data);