Skip to content

Commit bdeba93

Browse files
macOSmacOS
authored andcommitted
Merge branch 'master' of github.com:Halo-Michael/snappy
2 parents fbaa612 + d6c2cf4 commit bdeba93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libsnappy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ static char *copyBootHash(void)
200200
char *copy_system_snapshot()
201201
{
202202
char *hash = copyBootHash();
203-
if (hash == NULL) {
204-
return NULL;
205-
}
206203
#if TARGET_OS_OSX
207204
return hash;
208205
#else
206+
if (hash == NULL) {
207+
return NULL;
208+
}
209209
char *hashsnap = malloc(strlen(APPLESNAP) + strlen(hash) + 1);
210210
strcpy(hashsnap, APPLESNAP);
211211
strcpy(hashsnap + strlen(APPLESNAP), hash);

0 commit comments

Comments
 (0)