Displaying 6 results from an estimated 6 matches for "rl_gets".
Did you mean:
el_gets
2015 Jan 21
1
Re: [PATCH] fish: remove extra "prompt" checks
...cking for
> "prompt" again is redundant.
> ---
> fish/fish.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fish/fish.c b/fish/fish.c
> index 8b74c7b..71db83a 100644
> --- a/fish/fish.c
> +++ b/fish/fish.c
> @@ -661,8 +661,8 @@ rl_gets (int prompt)
> line_read = NULL;
> }
>
> - p = prompt && ps1 ? decode_ps1 (ps1) : NULL;
> - line_read = readline (prompt ? (ps1 ? p : FISH) : "");
> + p = ps1 ? decode_ps1 (ps1) : NULL;
> + line_read = readline (ps1 ? p : FISH);
Can...
2010 Feb 03
12
[PATCH 0/12] Add support for writing to hive files
This patch series adds support for some simple operations on hive
files, and I've now tested and verified that those operations work
correctly.
All except for the last patch (12/12) are ready to be committed. The
last patch is WIP.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
2015 Jan 20
9
[PATCH] daemon: readdir: fix invalid memory access on error
If "strdup (d->d_name)" fails with "i" > 0, then both "p" and
"ret->guestfs_int_dirent_list_val" are non-null pointers, but the latter
is no more valid (since "p" is the new realloc'ed buffer). Hence, trying
to free both will access to invalid memory.
Make sure to free only one of them, "p" if not null or
2015 Jan 20
0
[PATCH] fish: remove extra "prompt" checks
...thin a "if (prompt) {...}" block, so checking for
"prompt" again is redundant.
---
fish/fish.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fish/fish.c b/fish/fish.c
index 8b74c7b..71db83a 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -661,8 +661,8 @@ rl_gets (int prompt)
line_read = NULL;
}
- p = prompt && ps1 ? decode_ps1 (ps1) : NULL;
- line_read = readline (prompt ? (ps1 ? p : FISH) : "");
+ p = ps1 ? decode_ps1 (ps1) : NULL;
+ line_read = readline (ps1 ? p : FISH);
if (ps_output) { /* GU...
2010 Feb 05
13
[PATCH 01/14] hivexsh: Document some peculiarities of the "cd" command.
---
hivex/hivexsh.pod | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/hivex/hivexsh.pod b/hivex/hivexsh.pod
index 277e3ae..9336798 100644
--- a/hivex/hivexsh.pod
+++ b/hivex/hivexsh.pod
@@ -100,7 +100,14 @@ or even:
Path elements (node names) are matched case insensitively, and
characters like space, C<*>, and C<?> have I<no> special
2012 Mar 13
2
[PATCH 0/2] 'int' to 'size_t' changes
These two patches are probably not completely independent, but
separating them is a lot of work.
With *both* patches applied, all the tests and extra-tests pass.
That's no guarantee however that there isn't a mistake, so I don't
think this patch is a candidate for the 1.16 branch, until it's had a
lot more testing in development.
Rich.