Skip to content

Commit

Permalink
git-credential-netrc: fix uninitialized warning
Browse files Browse the repository at this point in the history
Simple patch to avoid unitialized warning and log what we'll do.

Signed-off-by: Ted Zlatanov <tzz@lifelogs.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
tzz authored and jrn committed Oct 8, 2013
1 parent 5482920 commit 506524a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/credential/netrc/git-credential-netrc
Expand Up @@ -369,7 +369,9 @@ sub find_netrc_entry {
{
my $entry_text = join ', ', map { "$_=$entry->{$_}" } keys %$entry;
foreach my $check (sort keys %$query) {
if (defined $query->{$check}) {
if (!defined $entry->{$check}) {
log_debug("OK: entry has no $check token, so any value satisfies check $check");
} elsif (defined $query->{$check}) {
log_debug("compare %s [%s] to [%s] (entry: %s)",
$check,
$entry->{$check},
Expand Down

0 comments on commit 506524a

Please sign in to comment.