Parent Directory
|
Revision Log
|
Patch
revision 1328 by stargo, Fri Nov 3 23:51:35 2006 UTC | revision 1329 by stargo, Sat Nov 4 17:33:15 2006 UTC | |
---|---|---|
# | Line 2623 scard_lock(int lock) | Line 2623 scard_lock(int lock) |
2623 | { | { |
2624 | if (!scard_mutex) | if (!scard_mutex) |
2625 | { | { |
2626 | int i; | |
2627 | ||
2628 | scard_mutex = | scard_mutex = |
2629 | (pthread_mutex_t **) xmalloc(sizeof(pthread_mutex_t *) * SCARD_LOCK_LAST); | (pthread_mutex_t **) xmalloc(sizeof(pthread_mutex_t *) * SCARD_LOCK_LAST); |
2630 | ||
2631 | for (i = 0; i < SCARD_LOCK_LAST; i++) | |
2632 | { | |
2633 | scard_mutex[i] = NULL; | |
2634 | } | |
2635 | } | } |
2636 | ||
2637 | if (!scard_mutex[lock]) | if (!scard_mutex[lock]) |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |