X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.c;h=5afd0572c486ad1dfc27201e256db35524413012;hb=69726762604ca262c12041b34564b9a74833d3dd;hp=103eefd38e8bf00dd965517f565b32993ebf1941;hpb=9db0457fa07df43928fc8fbade13593eb6c9b534;p=pazpar2-moved-to-github.git diff --git a/src/reclists.c b/src/reclists.c index 103eefd..5afd057 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -330,22 +330,19 @@ struct record_cluster *reclist_read_record(struct reclist *l) void reclist_enter(struct reclist *l) { yaz_mutex_enter(l->mutex); - if (l) - l->sorted_ptr = l->sorted_list; + l->sorted_ptr = l->sorted_list; } void reclist_leave(struct reclist *l) { yaz_mutex_leave(l->mutex); - if (l) - l->sorted_ptr = l->sorted_list; + l->sorted_ptr = l->sorted_list; } void reclist_rewind(struct reclist *l) { - if (l) - l->sorted_ptr = l->sorted_list; + l->sorted_ptr = l->sorted_list; }