- if (*ptr == NULL) {
- *ptr = (void *) 1;
- return MHD_YES;
- } else {
- *ptr == NULL;
-
- struct blerg *b = blerg_open(author);
- ret = blerg_fetch(b, record, &data, &len);
- blerg_close(b);
-
- if (ret == 0) {
- return respond_404(connection);
- } else {
- response = MHD_create_response_from_data(len, data, MHD_YES, MHD_NO);
- ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
- }
- MHD_destroy_response(response);
- return ret;
- }
- } else {
- if (*ptr == NULL) {
- *ptr = (void*) 1;
- return MHD_YES;
+ struct blerg *b = blerg_open(author);
+ ret = blerg_fetch(b, record, &data, &len);
+ blerg_close(b);
+
+ if (ret == 0) {
+ return respond_404(connection);