aboutsummaryrefslogtreecommitdiffstats
path: root/missing
diff options
context:
space:
mode:
Diffstat (limited to 'missing')
-rw-r--r--missing/ffs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/missing/ffs.c b/missing/ffs.c
index 1a1189968a..bad99cf116 100644
--- a/missing/ffs.c
+++ b/missing/ffs.c
@@ -6,11 +6,13 @@
int ffs(int arg)
{
unsigned int x = (unsigned int)arg;
- int r = 0;
+ int r;
if (x == 0)
return 0;
+ r = 1;
+
#if 32 < SIZEOF_INT * CHAR_BIT
if ((x & 0xffffffff) == 0) {
x >>= 32;