ObjFW  Check-in [f8ccaac96d]

Overview
Comment:OFURLHandler: Fix missing return
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f8ccaac96dd087ee15b2bd8e46730ce7edf1d35d696defaf92865568f59a0848
User & Date: js on 2017-11-13 22:25:50
Other Links: manifest | tags
Context
2017-11-13
22:26
OFLocalization: Fix type mismatch check-in: 209ea679c0 user: js tags: trunk
22:25
OFURLHandler: Fix missing return check-in: f8ccaac96d user: js tags: trunk
22:19
Only use OF_WARN_UNUSED_RESULT with Clang check-in: f12043ee28 user: js tags: trunk
Changes

Modified src/OFURLHandler.m from [d8db83adff] to [5c2e6057d0].

66
67
68
69
70
71
72


73
74
75
76
77
78
79
		handler = [[class alloc] initWithScheme: scheme];
		@try {
			[handlers setObject: handler
				     forKey: scheme];
		} @finally {
			[handler release];
		}


#ifdef OF_HAVE_THREADS
	} @finally {
		[mutex unlock];
	}
#endif
}








>
>







66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
		handler = [[class alloc] initWithScheme: scheme];
		@try {
			[handlers setObject: handler
				     forKey: scheme];
		} @finally {
			[handler release];
		}

		return true;
#ifdef OF_HAVE_THREADS
	} @finally {
		[mutex unlock];
	}
#endif
}