X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fnormalize_record.c;h=90876e56a54f1b02d49ae2f90e3a19aaf5dcfccd;hb=7d103e1dcbb332af2b4dd725cd7689057eed0092;hp=2143d0d6800489a06604ab51cc8f312f2231fd83;hpb=848a659ecc0b24d1881c3f091393b99259130aa7;p=pazpar2-moved-to-github.git diff --git a/src/normalize_record.c b/src/normalize_record.c index 2143d0d..90876e5 100644 --- a/src/normalize_record.c +++ b/src/normalize_record.c @@ -47,12 +47,16 @@ struct normalize_record_s { }; normalize_record_t normalize_record_create(struct conf_service *service, - const char *spec, int embed) + const char *spec) { NMEM nmem = nmem_create(); normalize_record_t nt = nmem_malloc(nmem, sizeof(*nt)); struct normalize_step **m = &nt->steps; int no_errors = 0; + int embed = 0; + + if (*spec == '<') + embed = 1; nt->nmem = nmem;