Lines Matching refs:safe_path
183 char *safe_path = NULL;
196 safe_path = talloc_strdup(tmp_ctx, "");
197 if (safe_path == NULL) {
204 safe_path = talloc_asprintf_append_buffer(safe_path, "_");
205 if (safe_path == NULL) {
220 safe_path = talloc_asprintf_append_buffer(safe_path, "%c", c);
221 if (safe_path == NULL) {
225 safe_path = talloc_asprintf_append_buffer(safe_path, "_%02x", c);
226 if (safe_path == NULL) {
232 safe_path = talloc_steal(mem_ctx, safe_path);
236 return safe_path;
260 char *safe_path;
270 safe_path = talloc_strdup(tmp_ctx, "");
271 if (safe_path == NULL) {
277 safe_path = talloc_steal(mem_ctx, safe_path);
285 safe_path = NULL;
301 safe_path = talloc_asprintf_append_buffer(safe_path, "%c", c);
302 if (safe_path == NULL) {
307 safe_path = talloc_steal(mem_ctx, safe_path);
311 return safe_path;