diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-08 20:21:14 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-08 20:21:14 +0100 |
commit | 64fdd86d0e820479b414628051cf8e16c643dc8d (patch) | |
tree | 07c76d55ef41e732defeb7482907fa7a7b38d207 /examples/diff.c | |
parent | e235db021267841ac39e2f539339d63d7e757672 (diff) | |
download | libgit2-64fdd86d0e820479b414628051cf8e16c643dc8d.tar.gz |
remote: don't check for upstream on an anonymous remote
If the remote is anonymous, then we cannot check for any configuration,
as there is no name. Check for this before we try to use the name, which
may be a NULL pointer.
This fixes #2697.
Diffstat (limited to 'examples/diff.c')
0 files changed, 0 insertions, 0 deletions