Changeset 136 for trunk/lib/smb_deps.c


Ignore:
Timestamp:
01/23/09 12:29:51 (15 years ago)
Author:
tim
Message:

fixed various integer issues and memory allocation issues

polished error message functions and added initial messages in a few places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/smb_deps.c

    r134 r136  
    3333{
    3434  void* ret_val = NULL;
    35   if((ret_val = (void*)malloc(size)) != NULL)
     35  if((size > 0) && (ret_val = (void*)malloc(size)) != NULL)
    3636    memset(ret_val, 0, size);
     37
    3738  return ret_val;
    3839}
Note: See TracChangeset for help on using the changeset viewer.