libssh2: clarify that sshp->path is always at least one byte
No binary (build failed)
—
(log yok)
| @@ -100,6 +100,7 @@ CURLcode Curl_getworkingpath(struct Curl_easy *data, | |
| } | |
| else | |
| *path = working_path; | |
| + | DEBUGASSERT(*path && (*path)[0]); |
| return CURLE_OK; | |
| } | |
| @@ -120,7 +120,7 @@ typedef enum { | |
| Everything that is strictly related to a connection is banned from this | |
| struct. */ | |
| struct SSHPROTO { | |
| - | char *path; /* the path we operate on */ |
| + | char *path; /* the path we operate on, at least one byte long */ |
| #ifdef USE_LIBSSH2 | |
| struct dynbuf readdir_link; | |
| struct dynbuf readdir; | |