Gerald Pfeifer : cabinet: Simplify code in fdi_decomp().

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 16 07:20:19 CDT 2007


Module: wine
Branch: master
Commit: cd7aecd52acc70d90a15d71a52365e8edac4f4df
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cd7aecd52acc70d90a15d71a52365e8edac4f4df

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Wed Mar 14 20:49:42 2007 +0100

cabinet: Simplify code in fdi_decomp().

---

 dlls/cabinet/fdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index 6815d6d..cb58949 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -2107,7 +2107,7 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
 
           do {
 
-            pathlen = (userpath) ? strlen(userpath) : 0;
+            pathlen = strlen(userpath);
             filenamelen = (cab->mii.nextname) ? strlen(cab->mii.nextname) : 0;
 
             /* slight overestimation here to save CPU cycles in the developer's brain */




More information about the wine-cvs mailing list