[PATCH] Improved handling of git syntax names with no git repository

Thiago Macieira thiago at macieira.org
Fri Mar 14 18:10:06 PDT 2014


Em sex 14 mar 2014, às 18:00:13, Linus Torvalds escreveu:
> +#define dummy_git_repository ((git_repository *) 8ul) /* Random bogus
> pointer, not NULL */

Out of curiosity, why 8?

8 could technically be a valid pointer, if someone were crazy enough to mmap a 
page at 0x0 (like the old Solaris library lib0 at 0.so).

Values from -3 to 3 are definitely not valid, though.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the subsurface mailing list