summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c4ed38)
raw | patch | inline | side by side (parent: 2c4ed38)
author | Nick Hengeveld <nickh@reactrix.com> | |
Tue, 29 Nov 2005 17:33:36 +0000 (09:33 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 29 Nov 2005 18:51:39 +0000 (10:51 -0800) |
The malloc patch from Jan Andres fixed the problem that was causing a
segfault when freeing the lock token, and Johannes Schindelin found
and fixed a problem when no URL is specified on the command line.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
segfault when freeing the lock token, and Johannes Schindelin found
and fixed a problem when no URL is specified on the command line.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index ad789829c1c33e00cbcc9e1e1564e645755d49ab..fc013ec139bd066a4d32357d7508d10c82b6f873 100644 (file)
--- a/http-push.c
+++ b/http-push.c
if (lock->owner != NULL)
free(lock->owner);
free(lock->url);
-/* Freeing the token causes a segfault...
free(lock->token);
-*/
free(lock);
return rc;
break;
}
+ if (!remote->url)
+ usage(http_push_usage);
+
memset(remote_dir_exists, 0, 256);
http_init();