@@ -313,7 +313,7 @@ Handle<Value> GitRepo::Workdir(const Arguments& args) {
313313Handle<Value> GitRepo::Odb (const Arguments& args) {
314314 HandleScope scope;
315315
316- git_odb *out = NULL ;
316+ git_odb *out = 0 ;
317317
318318 int result = git_repository_odb (
319319 &out
@@ -621,7 +621,7 @@ Handle<Value> GitRepo::CreateCommit(const Arguments& args) {
621621 String::Utf8Value update_ref (args[0 ]->ToString ());
622622 from_update_ref = strdup (*update_ref);
623623 } else {
624- from_update_ref = NULL ;
624+ from_update_ref = 0 ;
625625 }
626626 baton->update_ref = from_update_ref;
627627 baton->authorReference = Persistent<Value>::New (args[1 ]);
@@ -638,7 +638,7 @@ Handle<Value> GitRepo::CreateCommit(const Arguments& args) {
638638 String::Utf8Value message_encoding (args[3 ]->ToString ());
639639 from_message_encoding = strdup (*message_encoding);
640640 } else {
641- from_message_encoding = NULL ;
641+ from_message_encoding = 0 ;
642642 }
643643 baton->message_encoding = from_message_encoding;
644644 baton->messageReference = Persistent<Value>::New (args[4 ]);
@@ -934,7 +934,7 @@ Handle<Value> GitRepo::CreateSymbolicReference(const Arguments& args) {
934934 return ThrowException (Exception::Error (String::New (" Number force is required." )));
935935 }
936936
937- git_reference *out = NULL ;
937+ git_reference *out = 0 ;
938938 const char * from_name;
939939 String::Utf8Value name (args[0 ]->ToString ());
940940 from_name = strdup (*name);
@@ -988,7 +988,7 @@ Handle<Value> GitRepo::CreateReference(const Arguments& args) {
988988 return ThrowException (Exception::Error (String::New (" Number force is required." )));
989989 }
990990
991- git_reference *out = NULL ;
991+ git_reference *out = 0 ;
992992 const char * from_name;
993993 String::Utf8Value name (args[0 ]->ToString ());
994994 from_name = strdup (*name);
@@ -1124,7 +1124,7 @@ void GitRepo::AddRemoteAfterWork(uv_work_t *req) {
11241124Handle<Value> GitRepo::CreateRevWalk (const Arguments& args) {
11251125 HandleScope scope;
11261126
1127- git_revwalk *out = NULL ;
1127+ git_revwalk *out = 0 ;
11281128
11291129 int result = git_revwalk_new (
11301130 &out
@@ -1157,7 +1157,7 @@ Handle<Value> GitRepo::GetSubmodule(const Arguments& args) {
11571157 return ThrowException (Exception::Error (String::New (" String name is required." )));
11581158 }
11591159
1160- git_submodule *submodule = NULL ;
1160+ git_submodule *submodule = 0 ;
11611161 const char * from_name;
11621162 String::Utf8Value name (args[0 ]->ToString ());
11631163 from_name = strdup (*name);
@@ -1203,7 +1203,7 @@ Handle<Value> GitRepo::AddSubmodule(const Arguments& args) {
12031203 return ThrowException (Exception::Error (String::New (" Number use_gitlink is required." )));
12041204 }
12051205
1206- git_submodule *submodule = NULL ;
1206+ git_submodule *submodule = 0 ;
12071207 const char * from_url;
12081208 String::Utf8Value url (args[0 ]->ToString ());
12091209 from_url = strdup (*url);
@@ -1800,7 +1800,7 @@ Handle<Value> GitRepo::GetReferences(const Arguments& args) {
18001800 if (args[0 ]->IsUint32 ()) {
18011801 from_list_flags = (unsigned int ) args[0 ]->ToUint32 ()->Value ();
18021802 } else {
1803- from_list_flags = NULL ;
1803+ from_list_flags = 0 ;
18041804 }
18051805 baton->list_flags = from_list_flags;
18061806 baton->callback = Persistent<Function>::New (Local<Function>::Cast (args[1 ]));
@@ -2160,7 +2160,7 @@ Handle<Value> GitRepo::Clone(const Arguments& args) {
21602160 if (args[2 ]->IsObject ()) {
21612161 from_options = ObjectWrap::Unwrap<GitCloneOptions>(args[2 ]->ToObject ())->GetValue ();
21622162 } else {
2163- from_options = NULL ;
2163+ from_options = 0 ;
21642164 }
21652165 baton->options = from_options;
21662166 baton->callback = Persistent<Function>::New (Local<Function>::Cast (args[3 ]));
@@ -2235,7 +2235,7 @@ Handle<Value> GitRepo::GetRemote(const Arguments& args) {
22352235 return ThrowException (Exception::Error (String::New (" String name is required." )));
22362236 }
22372237
2238- git_remote *out = NULL ;
2238+ git_remote *out = 0 ;
22392239 const char * from_name;
22402240 String::Utf8Value name (args[0 ]->ToString ());
22412241 from_name = strdup (*name);
0 commit comments