From 957f3411170ca1d5f30ee2e2c4e25393195cce75 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Tue, 11 Nov 2008 23:39:21 +0100 Subject: modification coding stile :) --- src/base/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/base/main.c') 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; -- cgit v1.2.3