133 free(query->path); |
133 free(query->path); |
134 free(query); |
134 free(query); |
135 } |
135 } |
136 |
136 |
137 void davbrowser_query_path(UiObject *ui, DavBrowser *browser, const char *path) { |
137 void davbrowser_query_path(UiObject *ui, DavBrowser *browser, const char *path) { |
|
138 if (!browser->sn) { |
|
139 // TODO: error |
|
140 return; |
|
141 } |
|
142 |
138 // for comparison, we need the current base_url/repo_name + path |
143 // for comparison, we need the current base_url/repo_name + path |
139 size_t len = path ? strlen(path) : 0; |
144 size_t len = path ? strlen(path) : 0; |
140 if (len == 1 && *path == '/') { |
145 if (len == 1 && *path == '/') { |
141 path = ""; |
146 path = ""; |
142 } |
147 } |