Mercurial > hg > early-roguelike
comparison rogue5/mdport.c @ 35:05018c63a721
rogue5: remove some NULLs.
author | elwin |
---|---|
date | Tue, 15 Jun 2010 20:49:22 +0000 |
parents | 655c317b6237 |
children | 3c5682bbf164 |
comparison
equal
deleted
inserted
replaced
34:655c317b6237 | 35:05018c63a721 |
---|---|
483 pw = getpwuid(getuid()); | 483 pw = getpwuid(getuid()); |
484 | 484 |
485 if (pw != NULL) | 485 if (pw != NULL) |
486 h = pw->pw_dir; | 486 h = pw->pw_dir; |
487 else | 487 else |
488 h = NULL; | 488 h = ""; |
489 | 489 |
490 if (strcmp(h,"/") == 0) | 490 if (strcmp(h,"/") == 0) |
491 h = NULL; | 491 h = ""; |
492 #endif | 492 #endif |
493 homedir[0] = 0; | 493 homedir[0] = 0; |
494 #ifdef _WIN32 | 494 #ifdef _WIN32 |
495 if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, szPath))) | 495 if(SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, szPath))) |
496 h = szPath; | 496 h = szPath; |