To prevent the garlic from burning add it to the olive oil before turning on the heat, then turn the heat on to low. This allows the oil and garlic to slowly heat up, releasing more flavour.