Remove incorrect check for terminating nul character.

The terminating nul character is not stored in the store but
added by read_reply.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-07-01 13:30:45 +00:00
1 parent e8be5b7354
commit d07778ac00
1 file changed
-6
@@ -103,12 +103,6 @@ char *xenbus_read(const char *dir, const char *name, unsigned int *data_n)
} else if(n == 0){
err = -ENOENT;
kfree(data);
} else if(data[n - 1] != '\0') {
/* This shouldn't happen: everything is supposed to be a string. */
printk("XENBUS: Reading path %s: missing null terminator len=%i\n", path, n);
err = -EINVAL;
kfree(data);
n = 0;
}
kfree(path);
out:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.