Changeset 1804


Ignore:
Timestamp:
Feb 18, 2008 12:27:47 PM (17 years ago)
Author:
bennylp
Message:

Fixed crash when running SRTP on Win32 app since stderr is undefined (thanks Truong Thanh Quang)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/srtp/crypto/rng/rand_source.c

    r1741 r1804  
    9999#else 
    100100  /* no random source available; let the user know */ 
    101   fprintf(stderr, "WARNING: no real random source present!\n"); 
     101  if (stderr) 
     102    fprintf(stderr, "WARNING: no real random source present!\n"); 
     103  else 
     104    printf("WARNING: no real random source present!\n"); 
    102105  dev_random_fdes = RAND_SOURCE_READY; 
    103106#endif 
Note: See TracChangeset for help on using the changeset viewer.