From f5d28d106e535a8b9413db2afffc175f177811af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Sun, 11 Feb 2007 11:28:53 +0000
Subject: [PATCH] do nothing in restore_flags() if flags are not saved

Originally committed as revision 7918 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 102ba6c40b9..58edcbd33ae 100755
--- a/configure
+++ b/configure
@@ -291,6 +291,7 @@ save_flags(){
 }
 
 restore_flags(){
+    flags_saved || return
     CFLAGS="$SAVE_CFLAGS"
     LDFLAGS="$SAVE_LDFLAGS"
     extralibs="$SAVE_extralibs"
-- 
GitLab