diff options
Diffstat (limited to 'libglusterfsclient')
| -rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index b0ae61dad31..e09dc39aa3b 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -1443,7 +1443,7 @@ struct vmp_entry *  libgf_init_vmpentry (char *vmp, glusterfs_handle_t *vmphandle)  {          struct vmp_entry        *entry = NULL; -        int                     vmplen = 0; +        size_t                  vmplen = 0;          int                     appendslash = 0;          int                     ret = -1; @@ -1454,6 +1454,7 @@ libgf_init_vmpentry (char *vmp, glusterfs_handle_t *vmphandle)          }          vmplen = strlen (vmp); +        assert (vmplen > 0);          if (vmp[vmplen - 1] != '/') {                  vmplen++;                  appendslash = 1;  | 
