diff options
Diffstat (limited to 'src/base/main.c')
| -rw-r--r-- | src/base/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/main.c b/src/base/main.c index 6d36cd7..fce5a9f 100644 --- a/src/base/main.c +++ b/src/base/main.c @@ -84,8 +84,10 @@ char *getString(int n) int *newInt(int x) { int *new; + new = malloc(sizeof(int)); *new = x; + return new; } @@ -110,9 +112,9 @@ int isFillPath(const char *path) assert(path != NULL); #ifndef __WIN32__ - if (path[0] == '/') // for Unix-like systems ;) + if (path[0] == '/') // for Unix-like systems ;) #else - if (path[1] == ':') // for Windows-like systems ;) + if (path[1] == ':') // for Windows-like systems ;) #endif { return 1; |