/[rdesktop]/sourceforge.net/trunk/rdesktop/scard.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/scard.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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])

Legend:
Removed from v.1328  
changed lines
  Added in v.1329

  ViewVC Help
Powered by ViewVC 1.1.26