summaryrefslogtreecommitdiff
path: root/source4/lib/registry/patchfile.c
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@synlap.(none)>2008-04-15 11:52:33 +0200
committerWilco Baan Hofman <wilco@synlap.(none)>2008-04-15 11:52:33 +0200
commit0b8d2b3cb779463a1e24039300ac2669862f9b64 (patch)
treea8e638253e71008f75fbcd84b5fe5ad9717c9ef2 /source4/lib/registry/patchfile.c
parenta31b6607f22f6b3e1b354db2f9f611b299a2f7ae (diff)
downloadsamba-0b8d2b3cb779463a1e24039300ac2669862f9b64.tar.gz
samba-0b8d2b3cb779463a1e24039300ac2669862f9b64.tar.bz2
samba-0b8d2b3cb779463a1e24039300ac2669862f9b64.zip
Fixed the patchfile tests and tidy up the patchfile backends.
(This used to be commit 6e9b1e35a269af2eda79356c1525f5413656d648)
Diffstat (limited to 'source4/lib/registry/patchfile.c')
-rw-r--r--source4/lib/registry/patchfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile.c b/source4/lib/registry/patchfile.c
index 15e3a158f2..eaeef341bb 100644
--- a/source4/lib/registry/patchfile.c
+++ b/source4/lib/registry/patchfile.c
@@ -45,7 +45,7 @@ WERROR reg_generate_diff_key(struct registry_key *oldkey,
void *callback_data)
{
int i;
- struct registry_key *t1, *t2;
+ struct registry_key *t1 = NULL, *t2 = NULL;
char *tmppath;
const char *keyname1;
WERROR error, error1, error2;
@@ -295,7 +295,7 @@ _PUBLIC_ WERROR reg_diff_load(const char *filename,
/* Reset position in file */
lseek(fd, 0, SEEK_SET);
-#if 0
+#if 0 /* These backends are not supported yet. */
if (strncmp(hdr, "CREG", 4) == 0) {
/* Must be a W9x CREG Config.pol file */
return reg_creg_diff_load(diff, fd);