mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
sftp: Reformat sftp_readlink()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -2612,7 +2612,8 @@ int sftp_symlink(sftp_session sftp, const char *target, const char *dest) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
char *sftp_readlink(sftp_session sftp, const char *path) {
|
||||
char *sftp_readlink(sftp_session sftp, const char *path)
|
||||
{
|
||||
sftp_status_message status = NULL;
|
||||
sftp_message msg = NULL;
|
||||
ssh_string path_s = NULL;
|
||||
@@ -2623,8 +2624,10 @@ char *sftp_readlink(sftp_session sftp, const char *path) {
|
||||
uint32_t id;
|
||||
int rc;
|
||||
|
||||
if (sftp == NULL)
|
||||
if (sftp == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (path == NULL) {
|
||||
ssh_set_error_invalid(sftp);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user