git.annexia.org
/
hivex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: normalize to exactly one newline at EOF
[hivex.git]
/
lib
/
hivex.c
diff --git
a/lib/hivex.c
b/lib/hivex.c
index
7715520
..
a72fa77
100644
(file)
--- a/
lib/hivex.c
+++ b/
lib/hivex.c
@@
-559,7
+559,7
@@
hivex_root (hive_h *h)
{
hive_node_h ret = h->rootoffs;
if (!IS_VALID_BLOCK (h, ret)) {
{
hive_node_h ret = h->rootoffs;
if (!IS_VALID_BLOCK (h, ret)) {
- errno =
ENO
KEY;
+ errno =
HIVEX_NO_
KEY;
return 0;
}
return ret;
return 0;
}
return ret;
@@
-2748,8
+2748,7
@@
hivex_node_set_value (hive_h *h, hive_node_h node,
leave_partial:
for (int i = 0; i < alloc_ct; i += 2) {
leave_partial:
for (int i = 0; i < alloc_ct; i += 2) {
- if (values[i / 2].value != NULL)
- free (values[i / 2].value);
+ free (values[i / 2].value);
if (i + 1 < alloc_ct && values[i / 2].key != NULL)
free (values[i / 2].key);
}
if (i + 1 < alloc_ct && values[i / 2].key != NULL)
free (values[i / 2].key);
}