#include <arpa/inet.h>
#include <netdb.h>
-static char *server_capabilities = "";
+static char *server_capabilities = NULL;
/*
* Read all the refs from the other end
int server_supports(const char *feature)
{
- return strstr(feature, server_capabilities) != NULL;
+ return server_capabilities &&
+ strstr(server_capabilities, feature) != NULL;
}
int get_ack(int fd, unsigned char *result_sha1)